Re: [PATCH v16 0/7] config commit verbose

2016-05-06 Thread Pranit Bauva
but I was unable to find appearances of "COMMIT_EDITMSG". If COMMIT_EDITMSG was coming into picture, the commit.verbose could not affect it. And that is not the case. I guess this would be a desirable trait for most of the consumers of commit.verbose (like Ævar) so there would not be a nee

Re: [PATCH v5 0/2] bisect--helper: rewrite of check-term-format()

2016-05-07 Thread Pranit Bauva
On Sat, May 7, 2016 at 3:45 AM, Junio C Hamano wrote: > Pranit Bauva writes: > >> A very interesting fact to note: >> I made a mistake by dropping of the first argument 'term' in the function >> one_of() and compiled and the test suite passed fully (which was

Re: [PATCH v5 0/2] bisect--helper: rewrite of check-term-format()

2016-05-07 Thread Pranit Bauva
On Sun, May 8, 2016 at 7:55 AM, Junio C Hamano wrote: > Pranit Bauva writes: > >> I completely missed your point and you want me to go the Eric Sunshine's way? > > I am neutral. > > When I read your response to Eric's "top down" suggestion, I didn&#

Re: [PATCH v5 1/2] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2016-05-08 Thread Pranit Bauva
On Sun, May 8, 2016 at 12:34 PM, Johannes Schindelin wrote: > Hi Pranit, > > On Fri, 6 May 2016, Pranit Bauva wrote: > >> diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c >> index 3324229..d8de651 100644 >> --- a/builtin/bisect--helper.c >

[GSOC update] Week 1

2016-05-08 Thread Pranit Bauva
My public git.git is available here[1]. I regularly keep pushing my work so anyone interested can track me there. Feel free to participate in the discussions going on PRs with my mentors. Your comments are valuable. The things I was able to do: * Finish off with my micro project[2] about adding

Re: [PATCH v5 0/2] bisect--helper: rewrite of check-term-format()

2016-05-08 Thread Pranit Bauva
On Sun, May 8, 2016 at 11:53 AM, Pranit Bauva wrote: > On Sun, May 8, 2016 at 7:55 AM, Junio C Hamano wrote: >> Pranit Bauva writes: >> >>> I completely missed your point and you want me to go the Eric Sunshine's >>> way? >> >> I am neutral. &

Re: [PATCH v5 1/2] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2016-05-08 Thread Pranit Bauva
On Sun, May 8, 2016 at 9:00 PM, Christian Couder wrote: > On Sun, May 8, 2016 at 9:17 AM, Pranit Bauva wrote: >> On Sun, May 8, 2016 at 12:34 PM, Johannes Schindelin >> wrote: >>> Hi Pranit, >>> >>> On Fri, 6 May 2016, Pranit Bauva wrote: >>> &

Re: [PATCH v5 1/2] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2016-05-09 Thread Pranit Bauva
Hey Johannes, On Mon, May 9, 2016 at 8:29 PM, Johannes Schindelin wrote: > Hi Pranit, > > On Sun, 8 May 2016, Pranit Bauva wrote: > >> On Sun, May 8, 2016 at 12:34 PM, Johannes Schindelin >> wrote: >> > >> > On Fri, 6 May 2016, Pranit Bauva wro

Re: What's cooking in git.git (May 2016, #03; Mon, 9)

2016-05-09 Thread Pranit Bauva
xpect.) > > "git commit" learned to pay attention to "commit.verbose" > configuration variable and act as if "--verbose" option was > given from the command line. > > Almost there. > ($gmane/293663). I like the change you have made so you could s

[PATCH v6 0/3] bisect--helper: check_term_format() & write_terms()

2016-05-11 Thread Pranit Bauva
rsion-control.git/293785 Pranit Bauva (3): bisect--helper: use OPT_CMDMODE instead of OPT_BOOL bisect: rewrite `check_term_format` shell function in C bisect--helper: `write_terms` shell function in C builtin/bisect--helper.c | 97 +--- git-bise

[PATCH v6 2/3] bisect: rewrite `check_term_format` shell function in C

2016-05-11 Thread Pranit Bauva
for write_terms(). Helped-by: Johannes Schindelein Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 59 +++- git-bisect.sh| 31 ++--- 2 files changed

[PATCH v6 1/3] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2016-05-11 Thread Pranit Bauva
d-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c index 3324229..8111c91 100644 --- a/builtin/bisect

[PATCH v6 3/3] bisect--helper: `write_terms` shell function in C

2016-05-11 Thread Pranit Bauva
` subcommand is a temporary measure to port shell function to C so as to use the existing test suite. As more functions are ported, this subcommand will be retired and will be called by some other method. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva

Re: [PATCH] Documentation: clarify signature verification v2

2016-05-12 Thread Pranit Bauva
On Thu, May 12, 2016 at 12:20 PM, Fox in the shell wrote: > > Hi, > > Here is a second attempt at this patch. > Sorry for the delay, life somewhat got in the way. > Its okay! We understand that things might take a little more time than expected! > -- > Clarify which commits need to be signed. >

Re: [PATCH] Documentation: clarify signature verification v2

2016-05-12 Thread Pranit Bauva
On Thu, May 12, 2016 at 1:34 PM, Pranit Bauva wrote: > On Thu, May 12, 2016 at 12:20 PM, Fox in the shell > wrote: >> >> Hi, >> >> Here is a second attempt at this patch. >> Sorry for the delay, life somewhat got in the way. >> > > Its okay! We

Re: [PATCH] Documentation: clarify signature verification v2

2016-05-12 Thread Pranit Bauva
On Thu, May 12, 2016 at 10:08 PM, Junio C Hamano wrote: > Pranit Bauva writes: > >> Seems like Junio was waiting for someone to point this out[2]. > > Thanks. I think you covered most of them correctly; I only have one > thing to add. > >> * Comments are pu

Re: bug report

2016-05-12 Thread Pranit Bauva
t merge A $ git checkout B $ git rebase master This shows that some merge conflicts needs resolving. Did I follow your steps or I missed something? It would be better if you could reproduce your steps like I did so as to make things more clear to us. Regards, Pranit Bauva -- To unsub

Re: bug report

2016-05-12 Thread Pranit Bauva
uot;Add one line" and the commit on the B branch "Add one line too" are doing the same thing which is removing the line "hello" and adding the line "world". Then it applies the commit "modify one line" on top of this which removes the line "world" and adds the line "git". So finally, README.md will contain only "git". Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH v6 2/3] bisect: rewrite `check_term_format` shell function in C

2016-05-13 Thread Pranit Bauva
On Fri, May 13, 2016 at 4:06 AM, Junio C Hamano wrote: > Pranit Bauva writes: > >> + /* >> + * In theory, nothing prevents swapping completely good and bad, >> + * but this situation could be confusing and hasn't been tested >>

Re: bug report

2016-05-13 Thread Pranit Bauva
always did warn me. > Thanks. I will recommend you reading this article[1]. I know its a bit of a long read but it will help a lot. [1]: http://tedfelix.com/software/git-conflict-resolution.html Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[PATCH] t6030: explicitly test for bisection cleanup

2016-05-13 Thread Pranit Bauva
This is not an improvement in the test coverage but it helps in making it explicit as to know what exactly is the error as other tests are focussed on testing other things but they do indirectly test for this. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva

[PATCH 1/2] bisect--helper: `bisect_log` shell function in C

2016-05-13 Thread Pranit Bauva
subcommand will be retired and will be called by some other method. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- This can be applied on the pb/bisect branch builtin/bisect--helper.c | 22 +- git-bisect.sh| 7

[PATCH 2/2] bisect--helper: `bisect_voc` shell function in C

2016-05-13 Thread Pranit Bauva
Reimplement the `bisect_voc` shell function in C. This is a too small function to be called as a subcommand though the working of this function has been tested by calling it as a subcommand. Mentored-by: Lars Schneider Mentored-by: Pranit Bauva Signed-off-by: Pranit Bauva --- The PR for

Re: [PATCH 2/2] bisect--helper: `bisect_voc` shell function in C

2016-05-13 Thread Pranit Bauva
On Sat, May 14, 2016 at 1:32 AM, Pranit Bauva wrote: > Reimplement the `bisect_voc` shell function in C. This is a too small > function to be called as a subcommand though the working of this > function has been tested by calling it as a subcommand. > > Mentored-by: Lars Schneider

Re: What's cooking in git.git (May 2016, #05; Fri, 13)

2016-05-14 Thread Pranit Bauva
ect: rewrite `check_term_format` shell function in C > - bisect--helper: use OPT_CMDMODE instead of OPT_BOOL > > Beginning of GSoC "git bisect" project. Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord.

[GSOC Update] Week 2

2016-05-15 Thread Pranit Bauva
ttp://thread.gmane.org/gmane.comp.version-control.git/294520 [6]: https://github.com/pranitbauva1997/git/pull/8 PS: Thanks to Andrew Ardill on providing his comments of how to improve the format of this update email. I have tried to make it as exhaustive as possible. Regards, Pranit Bauva -- To un

Re: [GSOC Update] Week 2

2016-05-15 Thread Pranit Bauva
Hey Junio, On Mon, May 16, 2016 at 12:41 AM, Junio C Hamano wrote: > Pranit Bauva writes: > >>is available for testing on the pu branch. I am encouraging people to >>test it and provide useful comments. > > Do not encourage people to "TEST". In genera

Re: [PATCH v5 0/2] bisect--helper: rewrite of check-term-format()

2016-05-19 Thread Pranit Bauva
Hey Eric, Sorry for the late reply. I was on vacation. On Mon, May 16, 2016 at 6:05 AM, Eric Sunshine wrote: > On Sun, May 8, 2016 at 9:34 AM, Pranit Bauva wrote: >> On Sun, May 8, 2016 at 11:53 AM, Pranit Bauva wrote: >>> On Sun, May 8, 2016 at 7:55 AM, Junio C Hamano

Re: [PATCH v6 1/3] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2016-05-20 Thread Pranit Bauva
Hey Eric, On Mon, May 16, 2016 at 12:37 PM, Eric Sunshine wrote: > On Thu, May 12, 2016 at 1:32 AM, Pranit Bauva wrote: >> `--next-all` is meant to be used as a subcommand to support multiple >> "operation mode" though the current implementation does not contain any

Re: [PATCH 2/2] bisect--helper: `bisect_voc` shell function in C

2016-05-20 Thread Pranit Bauva
Hey Johannes, On Mon, May 16, 2016 at 12:10 PM, Johannes Schindelin wrote: > Hi Pranit, > > On Sat, 14 May 2016, Pranit Bauva wrote: > >> Reimplement the `bisect_voc` shell function in C. This is a too small >> function to be called as a subcommand though the working of t

Re: [PATCH 1/2] bisect--helper: `bisect_log` shell function in C

2016-05-20 Thread Pranit Bauva
Hey Eric, On Mon, May 16, 2016 at 1:06 PM, Eric Sunshine wrote: > On Fri, May 13, 2016 at 4:02 PM, Pranit Bauva wrote: >> bisect--helper: `bisect_log` shell function in C > > Do you need to insert "rewrite" or "reimplement" in the subject? > >> Reim

Re: [PATCH v6 3/3] bisect--helper: `write_terms` shell function in C

2016-05-20 Thread Pranit Bauva
Hey Eric, On Mon, May 16, 2016 at 12:58 PM, Eric Sunshine wrote: > On Thu, May 12, 2016 at 1:32 AM, Pranit Bauva wrote: >> Reimplement the `write_terms` shell function in C and add a `write-terms` >> subcommand to `git bisect--helper` to call it from git-bisect.sh . Als

Re: [PATCH v6 3/3] bisect--helper: `write_terms` shell function in C

2016-05-20 Thread Pranit Bauva
Hey Johannes, On Mon, May 16, 2016 at 6:46 PM, Johannes Schindelin wrote: > Hi, > > On Mon, 16 May 2016, Eric Sunshine wrote: > >> On Thu, May 12, 2016 at 1:32 AM, Pranit Bauva wrote: >> >> > + fp = fopen(".git/BISECT_TERMS", "w"

Re: [PATCH v1 3/3] travis-ci: run Git bisect on failed tests

2016-05-22 Thread Pranit Bauva
TABLE_BRANCH" > + git fetch --unshallow --quiet > + LAST_GOOD_REV=$(git merge-base $BAD_REV > "remotes/origin/$STABLE_BRANCH") > + > + for TEST_EXIT in t/test-results/*.exit > + do > + if test "$(cat "$TEST_EXIT")" != "0&quo

Re: [PATCH 2/2] bisect--helper: `bisect_voc` shell function in C

2016-05-22 Thread Pranit Bauva
Hey Matthieu, Sorry for the late reply. Somehow your email didn't receive my mailbox. I got to see this mail when I was going through the gmane archives. Matthieu Moy grenoble-inp.fr> writes: Pranit Bauva gmail.com> writes: >> +int bisect_voc(const char *term) >> +

[GSoC Update] Week 3

2016-05-22 Thread Pranit Bauva
INTRODUCTION == The purpose of this project is to convert the git-bisect utility which partly exists in the form of shell scripts to C code so as to make it more portable. I plan to do this by converting each function to C and then calling it

Re: [PATCH v6 3/3] bisect--helper: `write_terms` shell function in C

2016-05-23 Thread Pranit Bauva
Hey Johannes, On Mon, May 23, 2016 at 4:37 PM, Johannes Schindelin wrote: > Hi Pranit, > > On Fri, 20 May 2016, Pranit Bauva wrote: > >> Frankly, I have no idea what you mean by libification but I will use >> error() since efforts for libification have already started. &g

[PATCH v7 1/3] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2016-05-23 Thread Pranit Bauva
d-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c index 3324229..8111c91 100644 --- a/builtin/bisect

[PATCH v7 0/3] bisect--helper: check_term_format() & write_terms()

2016-05-23 Thread Pranit Bauva
* Previously ".git/" was hardcoded. Now it uses GIT_PATH_FUNC * Use error() instead of die. [1]: http://thread.gmane.org/gmane.comp.version-control.git/294388 Pranit Bauva (3): bisect--helper: use OPT_CMDMODE instead of OPT_BOOL bisect: rewrite `check_term_format` shell function in

[PATCH v7 3/3] bisect--helper: `write_terms` shell function in C

2016-05-23 Thread Pranit Bauva
` subcommand is a temporary measure to port shell function to C so as to use the existing test suite. As more functions are ported, this subcommand will be retired and will be called by some other method. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva

[PATCH v7 2/3] bisect: rewrite `check_term_format` shell function in C

2016-05-23 Thread Pranit Bauva
for write_terms(). Helped-by: Johannes Schindelein Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 59 +++- git-bisect.sh| 31 ++--- 2 files changed

Re: [PATCH v7 3/3] bisect--helper: `write_terms` shell function in C

2016-05-23 Thread Pranit Bauva
On Mon, May 23, 2016 at 9:31 PM, Eric Sunshine wrote: > On Mon, May 23, 2016 at 10:48 AM, Pranit Bauva wrote: >> Reimplement the `write_terms` shell function in C and add a `write-terms` >> subcommand to `git bisect--helper` to call it from git-bisect.sh . Also >> remove th

[PATCH] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-05-23 Thread Pranit Bauva
d-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/commit.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/builtin/commit.c b/builtin/commit.c index 391126e..ffa242c 100644 --- a/builtin/commit.c +++ b/builtin/commit.

Re: [PATCH] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-05-23 Thread Pranit Bauva
Hey Junio, On Tue, May 24, 2016 at 12:46 AM, Junio C Hamano wrote: > Pranit Bauva writes: > >> This is a follow up commit for f932729c (memoize common git-path >> "constant" files, 10-Aug-2015). >> >> It serves two purposes: >> 1. It reduces the

Re: [PATCH] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-05-23 Thread Pranit Bauva
Hey Junio On Tue, May 24, 2016 at 11:24 AM, Pranit Bauva wrote: >> And you do not free its return value. > This is one of the thing that bugging me with GIT_PATH_FUNC. Wouldn't > not freeing the memory lead to memory leaks? Slight misunderstanding. I got it now. Thanks! &g

[PATCH v8 2/3] bisect: rewrite `check_term_format` shell function in C

2016-05-24 Thread Pranit Bauva
for write_terms(). Helped-by: Johannes Schindelein Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 59 +++- git-bisect.sh| 31 ++--- 2 files changed

[PATCH v8 0/3] bisect--helper: check-term-format() & write_terms()

2016-05-24 Thread Pranit Bauva
Here is the link to v7[1]. This has a few modifications. Changes wrt v7 as suggested by Eric are: * Include the name of the file in the error message which couldn't be opened. * Use error_errno() with which we can make the error message more valuable. Pranit Bauva (3): bisect--helper

[PATCH v8 1/3] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2016-05-24 Thread Pranit Bauva
d-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c index 3324229..8111c91 100644 --- a/builtin/bisect

[PATCH v8 3/3] bisect--helper: `write_terms` shell function in C

2016-05-24 Thread Pranit Bauva
by some other method. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 36 +--- git-bisect.sh| 22 +++--- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git

Re: [PATCH] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-05-24 Thread Pranit Bauva
Hey Matthieu, On Tue, May 24, 2016 at 1:41 PM, Matthieu Moy wrote: > Junio C Hamano writes: > >> Pranit Bauva writes: >> >>> static const char *use_message_buffer; >>> -static const char commit_editmsg[] = "COMMIT_EDITMSG&quo

Re: [PATCH v8 3/3] bisect--helper: `write_terms` shell function in C

2016-05-24 Thread Pranit Bauva
Hey Christian, On Tue, May 24, 2016 at 1:03 PM, Christian Couder wrote: > On Tue, May 24, 2016 at 9:21 AM, Pranit Bauva wrote: >> diff --git a/git-bisect.sh b/git-bisect.sh >> index 7d7965d..cd39bd0 100755 >> --- a/git-bisect.sh >> +++ b/git-bisect.sh >>

[PATCH v9 0/3] bisect--helper: check_term_format() and write_terms()

2016-05-24 Thread Pranit Bauva
Here is the link to v8[1]. This has a few modifications. Changes wrt v8 as suggested by Christian are: * Remove the redundant `|| exit` Pranit Bauva (3): bisect--helper: use OPT_CMDMODE instead of OPT_BOOL bisect: rewrite `check_term_format` shell function in C bisect--helper

[PATCH v9 2/3] bisect: rewrite `check_term_format` shell function in C

2016-05-24 Thread Pranit Bauva
for write_terms(). Helped-by: Johannes Schindelein Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 59 +++- git-bisect.sh| 31 ++--- 2 files changed

[PATCH v9 1/3] bisect--helper: use OPT_CMDMODE instead of OPT_BOOL

2016-05-24 Thread Pranit Bauva
d-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/builtin/bisect--helper.c b/builtin/bisect--helper.c index 3324229..8111c91 100644 --- a/builtin/bisect

[PATCH v9 3/3] bisect--helper: `write_terms` shell function in C

2016-05-24 Thread Pranit Bauva
by some other method. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 36 +--- git-bisect.sh| 22 +++--- 2 files changed, 36 insertions(+), 22 deletions(-) diff --git

[PATCH v2] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-05-24 Thread Pranit Bauva
d-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- Link for v1[1]. Changes wrt v1: * Remove the call to git_path_commit_editmsg() which would directly assign the value to the string. * Remove the string commit_editmsg[] as it is redundant now. * Call git

Re: [PATCH v8 2/3] bisect: rewrite `check_term_format` shell function in C

2016-05-24 Thread Pranit Bauva
Hey Johannes, On Wed, May 25, 2016 at 10:34 AM, Johannes Schindelin wrote: > Hi Pranit, > > I think this patch series is now in a fine shape. Just one minor nit: Thanks! > On Tue, 24 May 2016, Pranit Bauva wrote: > >> + OPT_CMDMODE(0, "ch

Re: [RFC/PATCH 1/2] log: add "log.showsignature" configuration variable

2016-05-26 Thread Pranit Bauva
don't use test_config like in the >> first test? > > None, actually. It was just that I forgot to use test_config while > writing the tests. I will make changes accordingly as test_config > automatically unset the config variable, which is necessary. Or you could probably

Re: [PATCH] t6030: explicitly test for bisection cleanup

2016-05-27 Thread Pranit Bauva
On Fri, May 13, 2016 at 3:44 PM, Pranit Bauva wrote: > This is not an improvement in the test coverage but it helps in making > it explicit as to know what exactly is the error as other tests are > focussed on testing other things but they do indirectly test for this. > > Me

Re: [PATCH] t6030: explicitly test for bisection cleanup

2016-05-27 Thread Pranit Bauva
Hey Christian, On Sat, May 28, 2016 at 12:30 AM, Christian Couder wrote: > On Fri, May 27, 2016 at 7:57 PM, Pranit Bauva wrote: >> >> Anyone any comments? > > Maybe you could add this patch to, or squash it into, the patch that > convert bisect_clean_state to C. Sure

[GSOC Update] Week 2

2016-05-29 Thread Pranit Bauva
as a subcommand. * Convert bisect_reset() and add it as a subcommand. * Convert get_terms() and add the variables TERM_GOOD and TERM_BAD in a struct in the global state. Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a me

Re: [GSOC Update] Week 2

2016-05-29 Thread Pranit Bauva
On Mon, May 30, 2016 at 11:07 AM, Pranit Bauva wrote: > = SUMMARY == > My public git.git is available here[1]. I regularly keep pushing my work so > anyone interested can track me there. Feel free to participate in the >

[RFC/PATCH] bisect--helper: `bisect_clean_state` shell function in C

2016-05-30 Thread Pranit Bauva
, this subcommand will be retired and will be called by bisect_reset() and bisect_start(). Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- This patch contains a bug. I have tried to identify the bug and I suppose it exists in do_for_each_entry_in_dir(). I

Re: [RFC/PATCH] bisect--helper: `bisect_clean_state` shell function in C

2016-05-30 Thread Pranit Bauva
Hey Christian, On Tue, May 31, 2016 at 3:18 AM, Christian Couder wrote: > On Mon, May 30, 2016 at 8:21 PM, Pranit Bauva wrote: >> --- >> This patch contains a bug. I have tried to identify the bug and I suppose it >> exists in do_for_each_entry_in_dir(). I have reproduced

Re: [RFC/PATCH] bisect--helper: `bisect_clean_state` shell function in C

2016-05-30 Thread Pranit Bauva
Hey Michael, On Tue, May 31, 2016 at 9:55 AM, Michael Haggerty wrote: > On 05/30/2016 08:21 PM, Pranit Bauva wrote: >> Reimplement `bisect_clean_state` shell function in C and add a >> `bisect-clean-state` subcommand to `git bisect--helper` to call it from >> git-bi

[GSOC Update] Week 5

2016-06-05 Thread Pranit Bauva
://github.com/pranitbauva1997/git/pull/10 [5]: http://thread.gmane.org/gmane.comp.version-control.git/295524 [6]: https://github.com/pranitbauva1997/git/pull/11 Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kerne

Re: [PATCH v2] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-06-07 Thread Pranit Bauva
On Wed, May 25, 2016 at 12:49 AM, Pranit Bauva wrote: > This is a follow up commit for f932729c (memoize common git-path > "constant" files, 10-Aug-2015). > > The many function calls to git_path() are replaced by > git_path_commit_editmsg() and which thus eliminat

[PATCH 1/4] bisect--helper: `bisect_clean_state` shell function in C

2016-06-07 Thread Pranit Bauva
, this subcommand will be retired and will be called by bisect_reset() and bisect_start(). Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 49 +++- git-bisect.sh| 26

[PATCH 2/4] t6030: explicitly test for bisection cleanup

2016-06-07 Thread Pranit Bauva
This is not an improvement in the test coverage but it helps in making it explicit as to what exactly would be the error as other tests are focussed on testing other things. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- I faced this problem while

[PATCH 3/4] dir: introduce file_size() to check the size of file

2016-06-07 Thread Pranit Bauva
At times we require to see if the file is empty and get the size of the file. By using stat we can get the file size without actually having to open the file to check for its contents. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- dir.c | 8

[PATCH 4/4] bisect--helper: `bisect_reset` shell function in C

2016-06-07 Thread Pranit Bauva
subcommand would be retired and will be called by some other method. Note: --bisect-clean-state subcommand has not been retired as there are still a function namely `bisect_start()` which still uses this subcommand. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit

Re: [PATCH 1/4] bisect--helper: `bisect_clean_state` shell function in C

2016-06-08 Thread Pranit Bauva
Hey Eric, On Wed, Jun 8, 2016 at 4:01 AM, Eric Sunshine wrote: > On Tue, Jun 7, 2016 at 4:54 PM, Pranit Bauva wrote: >> Reimplement `bisect_clean_state` shell function in C and add a >> `bisect-clean-state` subcommand to `git bisect--helper` to call it from >> git-bisect.sh

Re: [PATCH 3/4] dir: introduce file_size() to check the size of file

2016-06-08 Thread Pranit Bauva
Hey Eric, On Wed, Jun 8, 2016 at 1:07 PM, Eric Sunshine wrote: > On Tue, Jun 7, 2016 at 4:54 PM, Pranit Bauva wrote: >> dir: introduce file_size() to check the size of file >> >> At times we require to see if the file is empty and get the size of the >> file. By usi

Re: [PATCH 2/4] t6030: explicitly test for bisection cleanup

2016-06-08 Thread Pranit Bauva
Hey Eric, On Wed, Jun 8, 2016 at 4:51 AM, Eric Sunshine wrote: > On Tue, Jun 7, 2016 at 4:54 PM, Pranit Bauva wrote: >> This is not an improvement in the test coverage but it helps in making >> it explicit as to what exactly would be the error as other tests are >> focu

Re: [PATCH 1/4] bisect--helper: `bisect_clean_state` shell function in C

2016-06-08 Thread Pranit Bauva
Hey Eric, On Wed, Jun 8, 2016 at 1:32 PM, Eric Sunshine wrote: > On Wed, Jun 8, 2016 at 3:46 AM, Pranit Bauva wrote: >> On Wed, Jun 8, 2016 at 4:01 AM, Eric Sunshine >> wrote: >>> On Tue, Jun 7, 2016 at 4:54 PM, Pranit Bauva wrote: >>>> +

Re: [PATCH 2/4] t6030: explicitly test for bisection cleanup

2016-06-08 Thread Pranit Bauva
Hey Eric, On Wed, Jun 8, 2016 at 1:47 PM, Eric Sunshine wrote: > On Wed, Jun 8, 2016 at 4:07 AM, Pranit Bauva wrote: >> On Wed, Jun 8, 2016 at 4:51 AM, Eric Sunshine >> wrote: >>> On Tue, Jun 7, 2016 at 4:54 PM, Pranit Bauva wrote: >>>> diff --git a/t

Re: [PATCH v4 37/38] i18n: unmark die messages for translation

2016-06-08 Thread Pranit Bauva
t;)" ;; >> + die "Please call 'bisect_state' with at least one argument." ;; > > OK. This should have had "bug:" prefix from the beginning, but that > is outside the topic. I can probably include this with the rewrite of git-bisect.sh . Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 3/4] dir: introduce file_size() to check the size of file

2016-06-08 Thread Pranit Bauva
Hey Torsten, On Wed, Jun 8, 2016 at 1:47 PM, Torsten Bögershausen wrote: > On 06/08/2016 09:57 AM, Pranit Bauva wrote: >> >> Hey Eric, >> >> On Wed, Jun 8, 2016 at 1:07 PM, Eric Sunshine >> wrote: >>> >>> On Tue, Jun 7, 2016 at 4:54 PM

Re: [PATCH 4/4] bisect--helper: `bisect_reset` shell function in C

2016-06-08 Thread Pranit Bauva
Hey Eric, On Wed, Jun 8, 2016 at 1:29 PM, Eric Sunshine wrote: > On Tue, Jun 7, 2016 at 4:54 PM, Pranit Bauva wrote: >> Reimplement `bisect_reset` shell function in C and add a `--bisect-reset` >> subcommand to `git bisect--helper` to call it from git-bisect.sh . >> &

[PATCH 2/2] bisect--helper: `check_expected_revs` shell function in C

2016-06-08 Thread Pranit Bauva
7;s C implementation, we can safely delete the shell implementation. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 21 - git-bisect.sh| 20 ++-- 2 files changed, 22 insertions(+), 19 dele

[PATCH 1/2] bisect--helper: `is_expected_rev` shell function in C

2016-06-08 Thread Pranit Bauva
Reimplement `is_expected_rev` shell function in C. This will further be called from `check_expected_revs` function. This is a quite small function thus subcommand facility is redundant. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- This applies on

Re: [PATCH 4/4] bisect--helper: `bisect_reset` shell function in C

2016-06-08 Thread Pranit Bauva
Hey Eric, On Wed, Jun 8, 2016 at 11:23 PM, Eric Sunshine wrote: > On Wed, Jun 8, 2016 at 9:20 AM, Pranit Bauva wrote: >> On Wed, Jun 8, 2016 at 1:29 PM, Eric Sunshine >> wrote: >>> On Tue, Jun 7, 2016 at 4:54 PM, Pranit Bauva wrote: >>>> + i

Re: [PATCH 1/4] bisect--helper: `bisect_clean_state` shell function in C

2016-06-08 Thread Pranit Bauva
Hey Eric, On Wed, Jun 8, 2016 at 11:29 PM, Eric Sunshine wrote: > On Wed, Jun 8, 2016 at 5:41 AM, Christian Couder > wrote: >> On Wed, Jun 8, 2016 at 10:02 AM, Eric Sunshine >> wrote: >>> On Wed, Jun 8, 2016 at 3:46 AM, Pranit Bauva wrote: >>>> On Wed

Re: [PATCH v2] builtin/commit.c: memoize git-path for COMMIT_EDITMSG

2016-06-09 Thread Pranit Bauva
Hey Jeff, On Thu, Jun 9, 2016 at 12:28 PM, Jeff King wrote: > On Tue, Jun 07, 2016 at 08:25:17PM +0530, Pranit Bauva wrote: > >> On Wed, May 25, 2016 at 12:49 AM, Pranit Bauva >> wrote: >> > This is a follow up commit for f932729c (memoize common git-path >>

Re: [PATCH 2/2] bisect--helper: `check_expected_revs` shell function in C

2016-06-10 Thread Pranit Bauva
Hey Eric, On Fri, Jun 10, 2016 at 3:24 AM, Eric Sunshine wrote: > On Wed, Jun 8, 2016 at 11:24 AM, Pranit Bauva wrote: >> Reimplement the `check_expected_revs` shell function in C and add a >> `--check-expected-revs` subcommand to `git bisect--helper` to call it >&g

Re: [PATCH 1/2] bisect--helper: `is_expected_rev` shell function in C

2016-06-10 Thread Pranit Bauva
Hey Eric, On Fri, Jun 10, 2016 at 3:03 AM, Eric Sunshine wrote: > On Wed, Jun 8, 2016 at 11:24 AM, Pranit Bauva wrote: >> Reimplement `is_expected_rev` shell function in C. This will further be >> called from `check_expected_revs` function. This is a quite small >> fun

Re: [PATCH] Fix spelling of "occurred"

2016-06-10 Thread Pranit Bauva
ators take care of everything else. Thanks for your contribution. Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/2] bisect--helper: `is_expected_rev` shell function in C

2016-06-11 Thread Pranit Bauva
Hey Eric, On Sat, Jun 11, 2016 at 12:44 AM, Eric Sunshine wrote: > On Fri, Jun 10, 2016 at 9:39 AM, Pranit Bauva wrote: >> On Fri, Jun 10, 2016 at 3:03 AM, Eric Sunshine >> wrote: >>> On Wed, Jun 8, 2016 at 11:24 AM, Pranit Bauva >>> wrote: >>>>

Re: [PATCH 3/4] dir: introduce file_size() to check the size of file

2016-06-12 Thread Pranit Bauva
filename, &st) < 0) > + return 0; > + return xsize_t(st.st_size); > +} > > Or, more git-ish: > > size_t file_size(const char *filename) > +{ > + struct stat st; > + if (stat(filename, &st)) > + return 0; > +

Re: [PATCH] Document the 'svn propset' command.

2016-06-13 Thread Pranit Bauva
ill set the property 'svn:keywords' to 'FreeBSD=%H' for the file > +'devel/py-tipper/Makefile'. > + > 'show-externals':: > Shows the Subversion externals. Use -r/--revision to specify a > specific revision. Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

[GSOC Update] Week 6

2016-06-13 Thread Pranit Bauva
]: http://thread.gmane.org/gmane.comp.version-control.git/295524 Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Document the 'svn propset' command.

2016-06-13 Thread Pranit Bauva
Alfred Perlstein Though I will still recommend you to go through [1] properly. Regards, Pranit Bauva -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH] Document the 'svn propset' command.

2016-06-13 Thread Pranit Bauva
Hey Alfred, On Mon, Jun 13, 2016 at 7:54 PM, Pranit Bauva wrote: > Hey Alfred, > > On Mon, Jun 13, 2016 at 6:22 PM, Alfred Perlstein wrote: >> Thank you Pranit. I thought that "signed off by" is used once someone >> approved my patch as opposed to when it'

[PATCH] strbuf: describe the return value of strbuf_read_file()

2016-06-13 Thread Pranit Bauva
Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- It is easy to be misguided on the return value of the function strbuf_read_file(). It does follow the pattern of other standard functions for reading files but its better to explicitly specify it

Re: [PATCH] strbuf: describe the return value of strbuf_read_file()

2016-06-13 Thread Pranit Bauva
> Good thing to do; I wonder if we want to explicitly say -1 or > leave it at "negative values are errors", though (my knee-jerk > reaction being "do not over-specify more than absolute minimum > to write callers correctly"). Sure I will re-roll with specifying ab

[PATCH v2] strbuf: describe the return value of strbuf_read_file

2016-06-13 Thread Pranit Bauva
Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- strbuf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/strbuf.h b/strbuf.h index 7987405..83c5c98 100644 --- a/strbuf.h +++ b/strbuf.h @@ -377,6 +377,8 @@ extern ssize_t strbuf_read_once(struct

[PATCH v2 6/6] bisect--helper: `bisect_write` shell function in C

2016-06-15 Thread Pranit Bauva
make the method use the two variables from the global scope within the C code. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/bisect--helper.c | 61 +++- git-bisect.sh| 25

[PATCH v2 0/6] convert various shell functions in git-bisect to C

2016-06-15 Thread Pranit Bauva
this series I have tried to output error wherever possible. What are your views? [1]: http://thread.gmane.org/gmane.comp.version-control.git/296717 Pranit Bauva (6): bisect--helper: `bisect_clean_state` shell function in C t6030: explicitly test for bisection cleanup wrapper: move is_empty_file

[PATCH v2 3/6] wrapper: move is_empty_file() from builtin/am.c

2016-06-15 Thread Pranit Bauva
ppropriate boolean value is returned. Suggested-by: Torsten Bögershausen Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- builtin/am.c | 16 cache.h | 3 +++ wrapper.c| 13 + 3 files changed, 16 insertions(+), 16

[PATCH v2 2/6] t6030: explicitly test for bisection cleanup

2016-06-15 Thread Pranit Bauva
This is not an improvement in the test coverage but it helps in making it explicit as to what exactly would be the error as other tests are focussed on testing other things. Mentored-by: Lars Schneider Mentored-by: Christian Couder Signed-off-by: Pranit Bauva --- I faced this problem while

<    1   2   3   4   5   6   7   >