[PATCH v2 0/1] git-add--interactive.perl: Add progress counter in the prompt

2019-09-28 Thread Kunal Tyagi via GitGitGadget
Hi git contributors! I'm Kunal Tyagi. While I was choosing the relevant patches for a commit using the git add -p command, I found that there was no feedback regarding how many hunks from the current file had been processed and how many were left. So I decided to add a small change to the prompt w

[PATCH v2 1/1] git-add--interactive.perl: Add progress counter in the prompt

2019-09-28 Thread Kunal Tyagi via GitGitGadget
From: Kunal Tyagi Adds a feedback regarding how many hunks from the current file have been processed and total number of hunks Also included: changes to the test script due to change in expected output string Change in UI: displays '(${current-hunk-id} + 1/${total-hunks-in-file})' before display

[PATCH v3] wrapper: use a loop instead of repetitive statements

2019-09-28 Thread Alex Henrie
A check into the history of this code revealed no particular reason for the code to be written in this way. All popular compilers are capable of unrolling loops if it benefits performance, and once this code is replaced with a loop, the magic number 6 used in multiple places in this function can be

[PATCH v3] commit-graph: remove a duplicate assignment

2019-09-28 Thread Alex Henrie
The variable g was being set to the same value both at the beginning of the function and before the loop. The assignment before the loop was kept because it helps clarify what the loop does, and the redundant assignment at the beginning of the function was removed. Reviewed-by: Derrick Stolee Sig

[PATCH v3] diffcore-break: use a goto instead of a redundant if statement

2019-09-28 Thread Alex Henrie
The condition "if (q->nr <= j)" checks whether the loop exited normally or via a break statement. This check can be avoided by replacing the jump to the end of the loop with a jump to the end of the function. With the break replaced by a goto, the two diff_q calls then can be replaced with a singl

Re: [PATCH 3/3] wrapper: use a loop instead of repetitive statements

2019-09-28 Thread Alex Henrie
On Thu, Sep 26, 2019 at 8:50 PM Jeff King wrote: > > On Thu, Sep 26, 2019 at 10:14:17PM +0200, Johannes Schindelin wrote: > > > However, I think that this patch should at least be accompanied by a > > commit message that suggests that some thought was put into it, and that > > concerns like mine w

Re: What's cooking in git.git (Sep 2019, #01; Sat, 7)

2019-09-28 Thread brian m. carlson
On 2019-09-28 at 23:31:33, Junio C Hamano wrote: > "brian m. carlson" writes: > > > On 2019-09-07 at 17:26:53, Junio C Hamano wrote: > >> * bc/object-id-part17 (2019-08-19) 26 commits > >> ... > >> - builtin/replace: make hash size independent > >> > >> Preparation for SHA-256 upgrade continue

Re: What's cooking in git.git (Sep 2019, #01; Sat, 7)

2019-09-28 Thread Junio C Hamano
"brian m. carlson" writes: > On 2019-09-07 at 17:26:53, Junio C Hamano wrote: >> * bc/object-id-part17 (2019-08-19) 26 commits >> ... >> - builtin/replace: make hash size independent >> >> Preparation for SHA-256 upgrade continues. >> >> Looked mostly OK, with a possible update. >> cf. <201

Re: [PATCH 11/13] tests: let --immediate and --write-junit-xml play well together

2019-09-28 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > diff --git a/t/test-lib.sh b/t/test-lib.sh > index d1ba33745a..f21c781e68 100644 > --- a/t/test-lib.sh > +++ b/t/test-lib.sh > @@ -695,7 +695,7 @@ test_failure_ () { > say_color error "not ok $test_count - $1" > shift > printf '%s

[PATCH] builtin/submodule--helper: fix usage string for 'update-clone'

2019-09-28 Thread Bert Wesarg
Signed-off-by: Bert Wesarg --- builtin/submodule--helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 909e77e802..89d6f02969 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -1874

Re: [PATCH 1/2] Move git_sort(), a stable sort, into into libgit.a

2019-09-28 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > --- > Makefile | 2 +- > compat/mingw.c| 5 - > git-compat-util.h | 4 +++- > compat/qsort.c => qsort.c | 2 +- > 4 files changed, 5 insertions(+), 8 deletions(-) > rename compat/qsort.c => qsort.c (97%)

Re: Bi-Weekly Standup - Time/timezone in calendar?

2019-09-28 Thread Junio C Hamano
Thomas Gummerer writes: >> I thought it was to be 1700 UTC, which currently is 1800 BST her in UK, and >> 1900 CST in Europe. > > That's my recollection as well, and what the calendar should say. > Thanks for flagging this! > > I don't know. I'd be happy to keep it at 17:00 UTC, but that might b