Re: [PATCH 2/2] patch-ids: skip merge commits

2016-09-07 Thread Johannes Schindelin
Hi Peff, On Wed, 7 Sep 2016, Jeff King wrote: > [...] > This patch just ignores merge commits entirely when > generating patch-ids, meaning they will never be matched > (from either side of a symmetric-diff traversal). ... except it does not ignore merge commits: > diff --git a/patch-ids.c

Re: [PATCH 1/2] patch-ids: turn off rename detection

2016-09-07 Thread Johannes Schindelin
Hi Peff, On Wed, 7 Sep 2016, Jeff King wrote: > The patch-id code may be running inside another porcelain > like "git log" or "git format-patch", and therefore may have > set diff_detect_rename_default, either via the diff-ui > config, or by default since 5404c11 (diff: activate > diff.renames

Re: [PATCH v1 2/2] read-cache: make sure file handles are not inherited by child processes

2016-09-07 Thread Lars Schneider
> On 06 Sep 2016, at 23:06, Eric Wong wrote: > > larsxschnei...@gmail.com wrote: >> static int ce_compare_data(const struct cache_entry *ce, struct stat *st) >> { >> int match = -1; >> -int fd = open(ce->name, O_RDONLY); >> +int fd = open(ce->name, O_RDONLY |

segfault in http.c when https URL is mistyped

2016-09-07 Thread Lars Wendler
Hi, we at Gentoo got a bug report [1] about git-remote-https segfaulting when the URL has been mistyped. This seems to only be triggered when git was compiled with curl support: git clone https::/some.example-site.net/test.git Observe the "https::/" instead of "https://;. As soon as you run

Re: [RFC/PATCH 0/2] more patch-id speedups

2016-09-07 Thread Johannes Schindelin
Hi Peff, On Wed, 7 Sep 2016, Jeff King wrote: > Michael and I found a case where the "format-patch --cherry-pick A...B" > command for a rebase took over 7 minutes to run with git v2.9.3. Yikes. > > Switching to v2.10 dropped that to a bit over 3 minutes (due to the > kw/patch-ids-optim topic).

Re: [PATCH v1 1/2] sha1_file: open window into packfiles with CLOEXEC

2016-09-07 Thread Lars Schneider
> On 06 Sep 2016, at 13:38, Johannes Schindelin > wrote: > > Hi Eric & Lars, > > On Mon, 5 Sep 2016, Eric Wong wrote: > >> larsxschnei...@gmail.com wrote: >>> All processes that the Git main process spawns inherit the open file >>> descriptors of the main process.

Re: [PATCH] gpg-interface: reflect stderr to stderr

2016-09-07 Thread Michael J Gruber
Johannes Schindelin venit, vidit, dixit 06.09.2016 18:43: > Hi Michael, > > okay, final mail on this issue today: > > On Tue, 6 Sep 2016, Johannes Schindelin wrote: > >> Your original issue seemed to be that the gpg command could succeed, but >> still no signature be seen. There *must* be a way

Re: [PATCH v2 6/6] git-gui: Update Japanese information

2016-09-07 Thread Satoshi Yasushima
Hmmm. Although I noticed now become PATCH 3/6 has lost. There seems to be a cause in the following taboo. Sure, PATCH 3/6 is little too great. http://vger.kernel.org/majordomo-info.html#taboo >Taboo things to be done when discussing at VGER lists : (abbr.) > * Message size exceeding 100 000

Re: [PATCH] gpg-interface: reflect stderr to stderr

2016-09-07 Thread Michael J Gruber
Jeff King venit, vidit, dixit 07.09.2016 10:39: > On Wed, Sep 07, 2016 at 10:27:34AM +0200, Michael J Gruber wrote: > >> Now, I can't reproduce C on Linux[*], so there is more involved. It >> could be that my patch just exposes a problem in our start_command() >> etc.: run-command.c contains a

[PATCH 0/3] fix checkout ambiguation in subdir

2016-09-07 Thread Nguyễn Thái Ngọc Duy
I need some more time (which I don't have) to convince myself about the "git checkout :/abc" patch. But these look like good bug fix/improvement. Nguyễn Thái Ngọc Duy (3): checkout: add some spaces between code and comment checkout.txt: document a common case that ignores ambiguation rules

[PATCH 1/3] checkout: add some spaces between code and comment

2016-09-07 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/checkout.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/checkout.c b/builtin/checkout.c index 8672d07..1f71d06 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -1038,7 +1038,7 @@ static

Re: [PATCH v2] t6026-merge-attr: clean up background process at end of test case

2016-09-07 Thread Johannes Schindelin
Hi Hannes, On Wed, 7 Sep 2016, Johannes Sixt wrote: > I did not extend the sleep time because it requires to change the file name > in the same patch. Yeah, I was just concerned that maybe we would take longer than that second to finish the test. But I guess I am just too paranoid here. Thanks

Re: [PATCH v2] rebase -i: improve advice on bad instruction lines

2016-09-07 Thread Dennis Kaarsemaker
Hi Ralf, There are quite a few patch series in flight these days around interactive rebase. Have you checked for conflicts with those? On di, 2016-09-06 at 20:59 +0200, Ralf Thielow wrote: > If we found bad instruction lines in the instruction sheet > of interactive rebase, we give the user

Why patch is not showed at log?

2016-09-07 Thread KES
I have patch: diff --git a/t b/t index ced22c4..992533b 100644 --- a/t +++ b/t @@ -1,2 +1,2 @@ asdf -asdf \ No newline at end of file +asdf When I commit it I do not see it at log: commit 1efee9908a734c40194ffc07e7793afd2e386fbc Author: x Date: Wed Sep 7 11:09:04 2016 +0300 asdf commit

[PATCH 2/3] checkout.txt: document a common case that ignores ambiguation rules

2016-09-07 Thread Nguyễn Thái Ngọc Duy
Normally we err on the safe side: if something can be seen as both an SHA1 and a pathspec, we stop and scream. In checkout, there is one exception added in 859fdab (git-checkout: improve error messages, detect ambiguities. - 2008-07-23), to allow the common case "git checkout branch". Let's

[PATCH 3/3] checkout: fix ambiguity check in subdir

2016-09-07 Thread Nguyễn Thái Ngọc Duy
The two functions in parse_branchname_arg(), verify_non_filename and check_filename, need correct prefix in order to reconstruct the paths and check for their existence. With NULL prefix, they just check paths at top dir instead. Signed-off-by: Nguyễn Thái Ngọc Duy ---

[PATCH 08/13] i18n: merge-recursive: mark verbose message for translation

2016-09-07 Thread Vasco Almeida
Signed-off-by: Vasco Almeida --- builtin/merge-recursive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/merge-recursive.c b/builtin/merge-recursive.c index 0bc88a7..1c21802 100644 --- a/builtin/merge-recursive.c +++

[PATCH 07/13] i18n: merge-recursive: mark error messages for translation

2016-09-07 Thread Vasco Almeida
Lowercase first word of such error messages following the usual style. Signed-off-by: Vasco Almeida --- builtin/merge-recursive.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/builtin/merge-recursive.c b/builtin/merge-recursive.c index

[PATCH 06/13] i18n: config: mark error message for translation

2016-09-07 Thread Vasco Almeida
Signed-off-by: Vasco Almeida --- builtin/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/config.c b/builtin/config.c index 6cbf733..05843a0 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -622,8 +622,8 @@ int cmd_config(int

[PATCH 09/13] i18n: notes: mark error messages for translation

2016-09-07 Thread Vasco Almeida
Signed-off-by: Vasco Almeida --- builtin/notes.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/builtin/notes.c b/builtin/notes.c index f848b89..abacae2 100644 --- a/builtin/notes.c +++ b/builtin/notes.c @@ -340,7 +340,7 @@ static

[PATCH 0/5] Fix version sort prerelease reordering bug

2016-09-07 Thread SZEDER Gábor
(Sorry for double post, forgot to Cc: the mailing list...) This series fixes a bug, where version sort with prerelease reordering puts tagnames in the wrong order, when the common part of two compared tagnames ends with the leading character(s) of one or more configured prerelease suffixes. More

[PATCH 2/5] t7004-tag: use test_config helper

2016-09-07 Thread SZEDER Gábor
... instead of setting and then manually unsetting configuration variables, on one occasion even outside the test_expect_success block. Signed-off-by: SZEDER Gábor --- t/t7004-tag.sh | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git

[PATCH 1/5] t7004-tag: delete unnecessary tags with test_when_finished

2016-09-07 Thread SZEDER Gábor
The '--force is moot with a non-existing tag name' test creates two new tags, which are then deleted right after the test is finished, outside the test_expect_success block, allowing 'git tag -d's output to pollute the test output. Use test_when_finished to delete those tags. Signed-off-by:

[PATCH 4/5] versioncmp: pass full tagnames to swap_prereleases()

2016-09-07 Thread SZEDER Gábor
The swap_prereleases() helper function is responsible for finding configured prerelease suffixes in a pair of tagnames to be compared, but this function currently only gets to see only the parts of those two tagnames starting at the first different character. To fix some issues related to

[PATCH 5/5] versioncmp: cope with common leading parts in versionsort.prereleaseSuffix

2016-09-07 Thread SZEDER Gábor
Version sort with prerelease reordering sometimes puts tagnames in the wrong order, when the common part of two compared tagnames ends with the leading character(s) of one or more configured prerelease suffixes. $ git config --get-all versionsort.prereleaseSuffix -beta $ git tag -l

Re: format-patch base-commit: moving to above the patch?

2016-09-07 Thread Junio C Hamano
Josh Triplett writes: > Currently, format-patch puts base-commit and prerequisite-patch-id > information below the patch, and below the email signature. Most mail > clients automatically trim everything below the signature marker as > unimportant when quoting a mail for a

Re: A note from the maintainer

2016-09-07 Thread Junio C Hamano
Jakub Narębski writes: > W dniu 03.09.2016 o 04:17, Junio C Hamano pisze: > >> Please remember to always state >> >> - what you wanted to achieve; >> >> - what you did (the version of git and the command sequence to reproduce >>the behavior); > > I wonder if it be worth

Re: Bug? ran into a "fatal" using interactive rebase

2016-09-07 Thread Johannes Schindelin
Hi Ralf, On Tue, 6 Sep 2016, Ralf Thielow wrote: > today I accidentally triggered a "fatal" using interactive rebase. > > If you edit the instruction sheet after 'rebase -i' and add an unknown > command, Git stops because it doesn't know the command. > That's fine, however, now we are in a

[PATCH 3/5] t7004-tag: add version sort tests to show prerelease reordering issues

2016-09-07 Thread SZEDER Gábor
Version sort with prerelease reordering sometimes puts tagnames in the wrong order, when the common part of two compared tagnames ends with the leading character(s) of one or more configured prerelease suffixes. Add tests that demonstrate these issues. The unrelated '--format should list tags as

Re: [PATCH 5/5] versioncmp: cope with common leading parts in versionsort.prereleaseSuffix

2016-09-07 Thread SZEDER Gábor
Quoting SZEDER Gábor : Version sort with prerelease reordering sometimes puts tagnames in the wrong order, when the common part of two compared tagnames ends with the leading character(s) of one or more configured prerelease suffixes. $ git config --get-all

[PATCH 13/13] i18n: update-index: mark warning for translation

2016-09-07 Thread Vasco Almeida
Signed-off-by: Vasco Almeida --- builtin/update-index.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/builtin/update-index.c b/builtin/update-index.c index ba04b19..7a17ce1 100644 --- a/builtin/update-index.c +++ b/builtin/update-index.c

[PATCH 05/13] i18n: branch: mark option description for translation

2016-09-07 Thread Vasco Almeida
Signed-off-by: Vasco Almeida --- builtin/branch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/branch.c b/builtin/branch.c index 7df0543..d5d93a8 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -657,7 +657,7 @@ int cmd_branch(int

[PATCH 03/13] i18n: apply: mark info messages for translation

2016-09-07 Thread Vasco Almeida
Mark messages for translation printed to stderr. Signed-off-by: Vasco Almeida --- builtin/apply.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/builtin/apply.c b/builtin/apply.c index ef2c084..43ab7c5 100644 --- a/builtin/apply.c +++

[PATCH 01/13] i18n: apply: mark plural string for translation

2016-09-07 Thread Vasco Almeida
Mark plural string for translation using Q_(). Signed-off-by: Vasco Almeida --- builtin/apply.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/builtin/apply.c b/builtin/apply.c index 1a488f9..ef03c74 100644 --- a/builtin/apply.c +++

[PATCH 04/13] i18n: blame: mark error messages for translation

2016-09-07 Thread Vasco Almeida
Mark error messages for translation passed to die() function. Change "Cannot" to lowercase following the usual style. Reflect changes to test by using test_i18ngrep. Signed-off-by: Vasco Almeida --- builtin/blame.c | 12 ++--

[PATCH 13/13] i18n: update-index: mark warnings for translation

2016-09-07 Thread Vasco Almeida
Signed-off-by: Vasco Almeida --- builtin/update-index.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/builtin/update-index.c b/builtin/update-index.c index ba04b19..7a17ce1 100644 --- a/builtin/update-index.c +++ b/builtin/update-index.c

[PATCH 02/13] i18n: apply: mark error messages for translation

2016-09-07 Thread Vasco Almeida
Mark error messages for translation passed to error() and die() functions. Signed-off-by: Vasco Almeida --- builtin/apply.c | 46 +++--- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/builtin/apply.c

[PATCH 10/13] notes: lowercase first word of error messages

2016-09-07 Thread Vasco Almeida
Follow the usual case style. Update one test to reflect these changes. Signed-off-by: Vasco Almeida --- builtin/notes.c | 64 t/t3320-notes-merge-worktrees.sh | 2 +- 2 files changed, 33 insertions(+), 33

[PATCH 12/13] i18n: show-branch: mark error messages for translation

2016-09-07 Thread Vasco Almeida
Lowercase some messages first word to match style of the others. Signed-off-by: Vasco Almeida --- builtin/show-branch.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/builtin/show-branch.c b/builtin/show-branch.c index

[PATCH 11/13] i18n: receive-pack: mark messages for translation

2016-09-07 Thread Vasco Almeida
Mark messages refuse_unconfigured_deny_msg and refuse_unconfigured_deny_delete_current_msg for translation. Signed-off-by: Vasco Almeida --- builtin/receive-pack.c | 58 ++ 1 file changed, 25 insertions(+), 33 deletions(-)

Re: [PATCH v2 00/20] object_id part 5

2016-09-07 Thread Junio C Hamano
"brian m. carlson" writes: > This is the fifth in a series of series to convert from unsigned char [20] to > struct object_id. > > This series converts many of the files in the builtin directory to use struct > object_id. This gets us almost to the point where we

Re: segfault in http.c when https URL is mistyped

2016-09-07 Thread Jeff King
On Wed, Sep 07, 2016 at 04:06:42PM -0400, Jeff King wrote: > +test_expect_success 'remote-http complains cleanly about malformed urls' ' > + # do not actually issue "list" or other commands, as we do not > + # want to rely on what curl would actually do with such a broken > + # URL.

Re: [PATCH v2 2/2] connect: advertized capability is not a ref

2016-09-07 Thread Jonathan Nieder
Junio C Hamano wrote: > Jonathan Tan writes: >> diff --git a/connect.c b/connect.c >> index 722dc3f..0c2221e 100644 >> --- a/connect.c >> +++ b/connect.c >> @@ -165,6 +165,9 @@ struct ref **get_remote_heads(int in, char *src_buf, >> size_t src_len, >>

Re: [PATCHv3] diff.c: emit moved lines with a different color

2016-09-07 Thread Jacob Keller
On Wed, Sep 7, 2016 at 11:02 AM, Stefan Beller wrote: > On Wed, Sep 7, 2016 at 10:54 AM, Junio C Hamano wrote: >> Stefan Beller writes: >> >>> as we do not want to see dashes ('moved-old'), I think I'l go with >>> "movedfrom" and

Re: [PATCH v3 0/8] Better heuristics make prettier diffs

2016-09-07 Thread Jacob Keller
On Wed, Sep 7, 2016 at 11:11 AM, Junio C Hamano wrote: > Michael Haggerty writes: > >> * In "blame: honor the diff heuristic options and config": >> >> * In v2, I suggested making `blame` honor all diff-related options. >> Junio explained why this

[PATCH 3/3] patch-ids: use commit sha1 as patch-id for merge commits

2016-09-07 Thread Jeff King
The patch-ids code which powers "log --cherry-pick" doesn't look at whether each commit is a merge or not. It just feeds the commit's first parent to the diff, and ignores any additional parents. In theory, this might be useful if you wanted to find equivalence between, say, a merge commit and a

[PATCH 2/3] diff_flush_patch_id: stop returning error result

2016-09-07 Thread Jeff King
All of our errors come from diff_get_patch_id(), which has exactly three error conditions. The first is an internal assertion, which should be a die("BUG") in the first place. The other two are caused by an inability to two diff blobs, which is an indication of a serious problem (probably

Re: [PATCH 1/3] patch-ids: turn off rename detection

2016-09-07 Thread Jacob Keller
On Wed, Sep 7, 2016 at 3:02 PM, Jeff King wrote: > The patch-id code may be running inside another porcelain > like "git log" or "git format-patch", and therefore may have > set diff_detect_rename_default, either via the diff-ui > config, or by default since 5404c11 (diff: activate

Re: [PATCH v2 00/20] object_id part 5

2016-09-07 Thread brian m. carlson
On Wed, Sep 07, 2016 at 01:12:09PM -0700, Junio C Hamano wrote: > It is a bit unfortunate that this conflicts somewhat in builtin/cat-file.c > and heavily with builtin/apply.c with other topics in flight. > > Let me see how bad the conflict resolution is and report back later. If it ends up

Re: [PATCH 3/3] patch-ids: use commit sha1 as patch-id for merge commits

2016-09-07 Thread Jeff King
On Wed, Sep 07, 2016 at 03:28:10PM -0700, Jacob Keller wrote: > On Wed, Sep 7, 2016 at 3:04 PM, Jeff King wrote: > > The patch-ids code which powers "log --cherry-pick" doesn't > > look at whether each commit is a merge or not. It just feeds > > the commit's first parent to the

Re: [RFC/PATCH v2 0/3] patch-id for merges

2016-09-07 Thread Josh Triplett
On Wed, Sep 07, 2016 at 06:01:01PM -0400, Jeff King wrote: > Here's a re-roll of the series I posted at: > > > http://public-inbox.org/git/20160907075346.z6wtmqnfc6bsu...@sigill.intra.peff.net/ > > Basically, it drops the time for "format-patch --cherry-pick" on a > particular case from 3

Re: [PATCH v2 00/20] object_id part 5

2016-09-07 Thread Junio C Hamano
"brian m. carlson" writes: > On Wed, Sep 07, 2016 at 01:12:09PM -0700, Junio C Hamano wrote: >> It is a bit unfortunate that this conflicts somewhat in builtin/cat-file.c >> and heavily with builtin/apply.c with other topics in flight. >> >> Let me see how bad the

Re: [PATCH v2 2/2] connect: advertized capability is not a ref

2016-09-07 Thread Junio C Hamano
Jonathan Nieder writes: > Given that there aren't any servers that are going to produce this > kind of bad input anyway, I prefer a die(). That would certainly put bigger pressure on the folks who write buggy stuff in the future. If we know that nobody produces such output,

[RFC/PATCH v2 0/3] patch-id for merges

2016-09-07 Thread Jeff King
Here's a re-roll of the series I posted at: http://public-inbox.org/git/20160907075346.z6wtmqnfc6bsu...@sigill.intra.peff.net/ Basically, it drops the time for "format-patch --cherry-pick" on a particular case from 3 minutes down to 3 seconds, by avoiding diffs on merge commits. Compared to

Re: [PATCH 2/2] patch-ids: skip merge commits

2016-09-07 Thread Jeff King
On Wed, Sep 07, 2016 at 02:46:53PM -0400, Jeff King wrote: > > With this change, commit_patch_id() will return 0 for merge commits > > (indicating success) but it will not have touched the sha1! Which means it > > may very well have all kinds of crap in the sha1 that may, or may not, > > match

Re: [PATCH 3/3] patch-ids: use commit sha1 as patch-id for merge commits

2016-09-07 Thread Jacob Keller
On Wed, Sep 7, 2016 at 3:04 PM, Jeff King wrote: > The patch-ids code which powers "log --cherry-pick" doesn't > look at whether each commit is a merge or not. It just feeds > the commit's first parent to the diff, and ignores any > additional parents. > The subject here is

Re: [PATCH v3 0/8] Better heuristics make prettier diffs

2016-09-07 Thread Junio C Hamano
Michael Haggerty writes: > * Add test t4059 as part of this commit, not as part of its > successor. Which needs to be moved to somewhere else, as another topics that has already been in 'next' uses t4059. I'd move it temporarily to t4061 with a separate SQUASH??? at

[PATCH 1/2] diff: omit found pointer from emit_callback

2016-09-07 Thread Stefan Beller
We keep the actual data in the diff options, which are just as accessible. Remove the pointer stored in struct emit_callback for readability. Signed-off-by: Stefan Beller --- diff.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/diff.c b/diff.c index

[PATCH 2/2] diff: remove dead code

2016-09-07 Thread Stefan Beller
When `len < 1`, len has to be 0 or negative, emit_line will then remove the first character and by then `len` would be negative. As this doesn't happen, it is safe to assume it is dead code. This continues to simplify the code, which was started in b8d9c1a66b (2009-09-03, diff.c: the

[PATCH 3/3] diff: remove dead code

2016-09-07 Thread Stefan Beller
When `len < 1`, len has to be 0 or negative, emit_line will then remove the first character and by then `len` would be negative. As this doesn't happen, it is safe to assume it is dead code. This continues to simplify the code, which was started in b8d9c1a66b (2009-09-03, diff.c: the

[PATCH 2/3] diff: omit found pointer from emit_callback

2016-09-07 Thread Stefan Beller
We keep the actual data in the diff options, which are just as accessible. Remove the pointer stored in struct emit_callback for readability. Signed-off-by: Stefan Beller --- diff.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/diff.c b/diff.c index

[PATCH 1/3] diff.c: use diff_options directly

2016-09-07 Thread Stefan Beller
The value of `ecbdata->opt` is accessible via the short variable `o` already, so let's use that instead. Signed-off-by: Stefan Beller --- diff.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/diff.c b/diff.c index 534c12e..4a6501c

Re: [PATCH] xdiff: remove unneeded declarations

2016-09-07 Thread Junio C Hamano
Stefan Beller writes: > Signed-off-by: Stefan Beller > --- > xdiff/xemit.c | 9 - > 1 file changed, 9 deletions(-) > > diff --git a/xdiff/xemit.c b/xdiff/xemit.c > index 49aa16f..b52b4b9 100644 > --- a/xdiff/xemit.c > +++ b/xdiff/xemit.c > @@

Re: [PATCH v2] rebase -i: improve advice on bad instruction lines

2016-09-07 Thread Ralf Thielow
2016-09-07 11:28 GMT+02:00 Dennis Kaarsemaker : > Hi Ralf, > > There are quite a few patch series in flight these days around > interactive rebase. Have you checked for conflicts with those? > Thanks. I did not check against 'pu' when I created this patch but I'm able to

Re: format-patch base-commit: moving to above the patch?

2016-09-07 Thread Josh Triplett
On Wed, Sep 07, 2016 at 09:06:31AM -0700, Junio C Hamano wrote: > Josh Triplett writes: > > > Currently, format-patch puts base-commit and prerequisite-patch-id > > information below the patch, and below the email signature. Most mail > > clients automatically trim

Re: [PATCH v2 2/2] connect: advertized capability is not a ref

2016-09-07 Thread Junio C Hamano
Jonathan Tan writes: > diff --git a/connect.c b/connect.c > index 722dc3f..0c2221e 100644 > --- a/connect.c > +++ b/connect.c > @@ -165,6 +165,9 @@ struct ref **get_remote_heads(int in, char *src_buf, > size_t src_len, > continue; >

[PATCH 1/2] patch-ids: turn off rename detection

2016-09-07 Thread Jeff King
The patch-id code may be running inside another porcelain like "git log" or "git format-patch", and therefore may have set diff_detect_rename_default, either via the diff-ui config, or by default since 5404c11 (diff: activate diff.renames by default, 2016-02-25). This is the case even if a command

[PATCH 2/2] patch-ids: skip merge commits

2016-09-07 Thread Jeff King
The patch-ids code which powers "log --cherry-pick" doesn't look at whether each commit is a merge or not. It just feeds the commit's first parent to the diff, and ignores any additional parents. In theory, this might be useful if you wanted to find equivalence between, say, a merge commit and a

[RFC/PATCH 0/2] more patch-id speedups

2016-09-07 Thread Jeff King
Michael and I found a case where the "format-patch --cherry-pick A...B" command for a rebase took over 7 minutes to run with git v2.9.3. Yikes. Switching to v2.10 dropped that to a bit over 3 minutes (due to the kw/patch-ids-optim topic). Better, but not great. The culprit turned out to be merge

Re: [PATCH] gpg-interface: reflect stderr to stderr

2016-09-07 Thread Jeff King
On Wed, Sep 07, 2016 at 10:27:34AM +0200, Michael J Gruber wrote: > Now, I can't reproduce C on Linux[*], so there is more involved. It > could be that my patch just exposes a problem in our start_command() > etc.: run-command.c contains a lot of ifdefing, so possibly quite > different code is

Re: How to simulate a real checkout to test a new smudge filter?

2016-09-07 Thread Michael J Gruber
john smith venit, vidit, dixit 06.09.2016 23:01: > On 9/6/16, Torsten Bögershausen wrote: >> On 06.09.16 19:47, john smith wrote: >>> I am looking for a way to force smudge filter to run by simulating a >>> real life checkout. Let's say I just created a new branch and did not >>>

Re: Why patch is not showed at log?

2016-09-07 Thread Kevin Daudt
On Wed, Sep 07, 2016 at 11:13:09AM +0300, KES wrote: > > Why I do not see changes at log when 'new line' was added at the end of file? I'm not sure what you exactly mean, but do you want to see the actual change the patch introduces in the log output? In that case, you can use git log --patch to

Re: Fixup of a fixup not working right

2016-09-07 Thread Johannes Schindelin
Hi Philip, On Tue, 6 Sep 2016, Philip Oakley wrote: > From: "Johannes Schindelin" > > > > On Sun, 4 Sep 2016, Philip Oakley wrote: > > > > > I suspect that some use cases have intermediate repositories that > > > contain a 'master' branch (it's just a name ;-) that

Re: [PATCH] compat: move strdup(3) replacement to its own file

2016-09-07 Thread Junio C Hamano
René Scharfe writes: > Well, OK. I think the missing point is that the original nedmalloc > doesn't come with strdup() and doesn't need it. Only _users_ of > nedmalloc need it. Marius added it in nedmalloc.c, but strdup.c is a > better place for it. Thanks. I'll add these

Re: [PATCH 2/3] diff_flush_patch_id: stop returning error result

2016-09-07 Thread Ramsay Jones
On 07/09/16 23:04, Jeff King wrote: > All of our errors come from diff_get_patch_id(), which has > exactly three error conditions. The first is an internal > assertion, which should be a die("BUG") in the first place. > > The other two are caused by an inability to two diff blobs,

[PATCH 1/3] patch-ids: turn off rename detection

2016-09-07 Thread Jeff King
The patch-id code may be running inside another porcelain like "git log" or "git format-patch", and therefore may have set diff_detect_rename_default, either via the diff-ui config, or by default since 5404c11 (diff: activate diff.renames by default, 2016-02-25). This is the case even if a command

[PATCH 0/3] preparatory diff improvements for moved color detection

2016-09-07 Thread Stefan Beller
Motivated by the feedback on the "[PATCHv4] diff.c: emit moved lines with a different color"[1], I started refactoring the fn_out_consume function in diff.c. This lead to a huge amount of tiny patches so far, but nothing to present as an end result. These patches are preparatory for this effort

[PATCH v3 2/2] connect: advertized capability is not a ref

2016-09-07 Thread Jonathan Tan
When cloning an empty repository served by standard git, "git clone" produces the following reassuring message: $ git clone git://localhost/tmp/empty Cloning into 'empty'... warning: You appear to have cloned an empty repository. Checking connectivity... done.

[PATCH v3 1/2] tests: move test_lazy_prereq JGIT to test-lib.sh

2016-09-07 Thread Jonathan Tan
This enables JGIT to be used as a prereq in invocations of test_expect_success (and other functions) in other test scripts. Signed-off-by: Jonathan Tan --- t/t5310-pack-bitmaps.sh | 4 t/test-lib.sh | 4 2 files changed, 4 insertions(+), 4

[PATCH v3 0/2] handle empty spec-compliant remote repos correctly

2016-09-07 Thread Jonathan Tan
Updated, taking into account review comments. This patch set uses warnings (instead of errors using "die") to indicate protocol errors that we can recover from. There is a discussion on a sibling thread about whether such protocol errors should be errors ("die") instead - I can change it if

"fatal error in commit_refs" from pushing to github

2016-09-07 Thread Duy Nguyen
I got the message in the subject when pushing to github today. Yes I know it's github, not git. But according to stackoveflow [1] it's a local problem. Which makes me think, if we know exactly what this is (or at least roughly the problem area), maybe we could improve git to catch it locally in

[PATCH] Move format-patch base commit and prerequisites before email signature

2016-09-07 Thread Josh Triplett
Any text below the "-- " for the email signature gets treated as part of the signature, and many mail clients will trim it from the quoted text for a reply. Move it above the signature, so people can reply to it more easily. Add tests for the exact format of the email signature, and add tests to

Re: [PATCH v3 2/2] connect: advertized capability is not a ref

2016-09-07 Thread Jonathan Nieder
Jonathan Tan wrote: > Git advertises the same capabilities^{} ref in its ref advertisement for push > but since it never remembered to do so for fetch, the client forgot to handle > this case. Handle it. The comment in the previous review was that this doesn't describe the history correctly. It

Re: [PATCH] connect: tighten check for unexpected early hang up (Re: [PATCH v3 2/2] connect: advertized capability is not a ref)

2016-09-07 Thread Jonathan Nieder
Jonathan Nieder wrote: > Change-Id: I3cec2c160eb6c6f3efdce7dab38a4c78592f6c7f Gah --- sorry about that. Please remove this line if applying (or I'll be happy to resend without it after review). Jonathan

Re: "fatal error in commit_refs" from pushing to github

2016-09-07 Thread Jeff King
On Thu, Sep 08, 2016 at 07:49:12AM +0700, Duy Nguyen wrote: > I got the message in the subject when pushing to github today. Yes I > know it's github, not git. But according to stackoveflow [1] it's a > local problem. Which makes me think, if we know exactly what this is > (or at least roughly

[PATCH] connect: tighten check for unexpected early hang up (Re: [PATCH v3 2/2] connect: advertized capability is not a ref)

2016-09-07 Thread Jonathan Nieder
(+cc: Heiko) Jonathan Nieder wrote: > 'die_initial_contact' uses got_at_least_one_head to determine whether > it was on the first line but code paths added later that use > 'continue' don't populate it properly (see b06dcd7d, 40c155ff, and > 1a7141ff). We could do > > int first_line = 1; >

Re: [PATCH] connect: tighten check for unexpected early hang up (Re: [PATCH v3 2/2] connect: advertized capability is not a ref)

2016-09-07 Thread Jonathan Nieder
Jonathan Nieder wrote: > Subject: connect: tighten check for unexpected early hang up [...] > @@ -131,7 +131,7 @@ struct ref **get_remote_heads(int in, char *src_buf, > size_t src_len, > PACKET_READ_GENTLE_ON_EOF | >

[PATCH 1/5] am: put spaces around pipe in usage string

2016-09-07 Thread Alex Henrie
This makes the style a little more consistent with other usage strings, and will resolve a warning at https://www.softcatala.org/recursos/quality/git.html Signed-off-by: Alex Henrie --- builtin/am.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 5/5] unpack-trees: do not capitalize "working"

2016-09-07 Thread Alex Henrie
In English, only proper nouns are capitalized. Signed-off-by: Alex Henrie --- unpack-trees.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unpack-trees.c b/unpack-trees.c index 11c37fb..c87a90a 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@

[PATCH 4/5] git-merge-octopus: do not capitalize "octopus"

2016-09-07 Thread Alex Henrie
In English, only proper nouns are capitalized. Signed-off-by: Alex Henrie --- git-merge-octopus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git-merge-octopus.sh b/git-merge-octopus.sh index 308eafd..bcf0d92 100755 --- a/git-merge-octopus.sh

[PATCH 2/5] cat-file: put spaces around pipes in usage string

2016-09-07 Thread Alex Henrie
This makes the style a little more consistent with other usage strings, and will resolve a warning at https://www.softcatala.org/recursos/quality/git.html Signed-off-by: Alex Henrie --- builtin/cat-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/5] git-rebase--interactive: fix English grammar

2016-09-07 Thread Alex Henrie
Signed-off-by: Alex Henrie --- git-rebase--interactive.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index 7e558b0..6fd6d4e 100644 --- a/git-rebase--interactive.sh +++

Re: [PATCH v2 1/2] tests: move test_lazy_prereq JGIT to test-lib.sh

2016-09-07 Thread Junio C Hamano
Jonathan Tan writes: > This enables JGIT to be used as a prereq in invocations of > test_expect_success (and other functions) in other test scripts. > > Signed-off-by: Jonathan Tan > --- > t/t5310-pack-bitmaps.sh | 4 > t/test-lib.sh

Re: [PATCH v2 6/6] git-gui: Update Japanese information

2016-09-07 Thread Junio C Hamano
"Satoshi Yasushima" writes: > There seems to be a cause in the following taboo. > Sure, PATCH 3/6 is little too great. > http://vger.kernel.org/majordomo-info.html#taboo > >Taboo things to be done when discussing at VGER lists > : (abbr.) > > * Message size exceeding

Re: [PATCH v2 00/38] Virtualization of the refs API

2016-09-07 Thread Junio C Hamano
Michael Haggerty writes: > This is v2 of the patch series to virtualize the references API > (though earlier patch series similar in spirit were submitted by > Ronnie Sahlberg and David Turner). Thanks to Junio, Eric, and Ramsay > for their comments about v1 [1]. > > Nobody

Re: [PATCH] t9903: fix broken && chain

2016-09-07 Thread Junio C Hamano
Johannes Sixt writes: > We might wonder why our && chain check does not catch this case: > The && chain check uses a strange exit code with the expectation that > the second or later part of a broken && chain would not exit with this > particular code. > > This expectation does

Re: [PATCH] t6026-merge-attr: wait for process to release trash directory

2016-09-07 Thread Junio C Hamano
Jeff King writes: > On Mon, Sep 05, 2016 at 09:03:48PM +0200, Johannes Sixt wrote: > >> The process spawned in the hook uses the test's trash directory as CWD. >> As long as it is alive, the directory cannot be removed on Windows. >> Although the test succeeds, the 'test_done'

Re: [PATCH 2/2] patch-ids: skip merge commits

2016-09-07 Thread Jeff King
On Wed, Sep 07, 2016 at 02:52:04PM +0200, Johannes Schindelin wrote: > > diff --git a/patch-ids.c b/patch-ids.c > > index 77e4663..b1f8514 100644 > > --- a/patch-ids.c > > +++ b/patch-ids.c > > @@ -7,10 +7,12 @@ > > int commit_patch_id(struct commit *commit, struct diff_options *options, > >

Re: [PATCH 5/5] pack-objects: walk tag chains for --include-tag

2016-09-07 Thread Junio C Hamano
Jeff King writes: > As explained further in the commit message, "fetch" is robust to this, > because it does a real connectivity check and follow-on fetch before > writing anything it thinks it got via include-tag. So perhaps one could > argue that pack-objects is correct;

Re: [RFC/PATCH 0/2] more patch-id speedups

2016-09-07 Thread Jeff King
On Wed, Sep 07, 2016 at 03:06:36PM +0200, Johannes Schindelin wrote: > > This is marked as "RFC" because I don't feel entirely confident that I'm > > not missing some clever need for these options. But in both cases my gut > > feeling is that they are simply unintended effects that nobody ever >

  1   2   >