Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread René Scharfe
Am 21.06.2016 um 23:04 schrieb Jeff King: > On Tue, Jun 21, 2016 at 10:57:43PM +0200, René Scharfe wrote: > >> Am 21.06.2016 um 22:42 schrieb René Scharfe: >>> The value 120 is magic; we need it to pass the tests. That's >>> because prepare_header() is used for building extended header >>>

Re: [PATCH 2/2] archive-tar: write extended headers for far-future mtime

2016-06-21 Thread René Scharfe
Am 21.06.2016 um 00:54 schrieb René Scharfe: Am 16.06.2016 um 06:37 schrieb Jeff King: 2. System tars that cannot handle pax headers. In t5000 there is a simple interpreter for path headers for systems whose tar doesn't handle them. Adding one for mtime headers may be feasible. It's just

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread René Scharfe
Am 21.06.2016 um 23:02 schrieb Jeff King: On Tue, Jun 21, 2016 at 10:42:52PM +0200, René Scharfe wrote: If we could set the limit to a lower value than 8GB for testing then we could at least check if the extended header is written, e.g. if ustar_size() could be convinced to return 0 every time

[PATCH] git-p4: Fix verbose printing

2016-06-21 Thread Ben Widawsky
The current logic seems to invert the error message when using verbose messages. The inversion seems to be indicated by the caller: if self.inClientSpec(f['path']) and self.hasBranchPrefix(f['path'])] This behavior has existed since the original commit: commit

[PATCH v3] Refactor recv_sideband()

2016-06-21 Thread Lukas Fleischer
Before this patch, we used character buffer manipulations to split messages from the sideband at line breaks and insert "remote: " at the beginning of each line, using the packet size to determine the end of a message. However, since it is safe to assume that diagnostic messages from the sideband

Re: [PATCH 11/11] i18n: difftool: mark warnings for translation

2016-06-21 Thread David Aguilar
On Tue, Jun 21, 2016 at 11:44:13AM +, Vasco Almeida wrote: > --- a/git-difftool.perl > +++ b/git-difftool.perl > @@ -451,11 +452,11 @@ sub dir_diff > } > > if (exists $wt_modified{$file} and exists $tmp_modified{$file}) > { > - my $errmsg =

[PATCH] doc: git-htmldocs.googlecode.com is no more

2016-06-21 Thread Jonathan Nieder
http://git-htmldocs.googlecode.com/git/git.html says There was no service found for the uri requested. Link to the HTML documentation on repo.or.cz instead. I'd rather use an up-to-date https link for the rendered documentation, but I wasn't able to find one. According to the 'todo' branch,

Re: [PATCH v2 2/2] grep: fix grepping for "intent to add" files

2016-06-21 Thread Eric Sunshine
On Tue, Jun 21, 2016 at 5:14 PM, Charles Bailey wrote: > From: Charles Bailey > > This reverts commit 4d552005323034c1d6311796ac1074e9a4b4b57e and adds an > alternative fix to maintain the -L --cached behavior. It is common to provide some context

Re: Managing sub-projects

2016-06-21 Thread Stefan Beller
Hi Michael, On Tue, Jun 21, 2016 at 4:06 PM, Michael Eager wrote: > Hi Stephan! > > On 06/19/2016 07:01 PM, Stefan Beller wrote: >> >> On Sat, Jun 18, 2016 at 4:20 PM, Michael Eager wrote: >>> >>> >>> Any other ways to do what I want without creating a

Re: Managing sub-projects

2016-06-21 Thread Michael Eager
Hi Stephan! On 06/19/2016 07:01 PM, Stefan Beller wrote: On Sat, Jun 18, 2016 at 4:20 PM, Michael Eager wrote: Any other ways to do what I want without creating a separate forked repo for each of the sub-projects? Or have I misunderstood one of these schemes? I think

Re: [PATCH v2 2/2] grep: fix grepping for "intent to add" files

2016-06-21 Thread Junio C Hamano
Charles Bailey writes: > Is "Helped-by" an appropriate attribution in this case? Sure. > diff --git a/builtin/grep.c b/builtin/grep.c > index 462e607..ae73831 100644 > --- a/builtin/grep.c > +++ b/builtin/grep.c > @@ -386,7 +386,7 @@ static int grep_cache(struct grep_opt

Re: [PATCH v2 3/8] Convert struct diff_filespec to struct object_id

2016-06-21 Thread Junio C Hamano
"brian m. carlson" writes: I was trying to make sure there is no misconversion, but some lines that got wrapped were distracting. For example: > @@ -2721,7 +2722,8 @@ static int diff_populate_gitlink(struct diff_filespec > *s, int size_only) > if

Re: [PATCH v2 2/8] Apply object_id Coccinelle transformations.

2016-06-21 Thread Junio C Hamano
"brian m. carlson" writes: > Apply the set of semantic patches from contrib/examples/coccinelle to > convert some leftover places using struct object_id's hash member to > instead use the wrapper functions that take struct object_id natively. It is somewhat curious

[PATCH v2 1/2] Fix duplicated test name

2016-06-21 Thread Charles Bailey
Signed-off-by: Charles Bailey --- Spotted while testing t7810-grep and grep "i-t-a" fixes. t/t7810-grep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t7810-grep.sh b/t/t7810-grep.sh index 1e72971..c4302ed 100755 --- a/t/t7810-grep.sh +++

[PATCH v2 2/2] grep: fix grepping for "intent to add" files

2016-06-21 Thread Charles Bailey
From: Charles Bailey This reverts commit 4d552005323034c1d6311796ac1074e9a4b4b57e and adds an alternative fix to maintain the -L --cached behavior. 4d5520053 caused 'git grep' to no longer find matches in new files in the working tree where the corresponding index entry

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread Jeff King
On Tue, Jun 21, 2016 at 10:57:43PM +0200, René Scharfe wrote: > Am 21.06.2016 um 22:42 schrieb René Scharfe: > > The value 120 is magic; we need it to pass the tests. That's > > because prepare_header() is used for building extended header > > records as well and we don't create extended headers

Re: [PATCH v2 0/8] object_id part 4

2016-06-21 Thread Junio C Hamano
"brian m. carlson" writes: > This series is part 4 in a series of conversions to replace instances of > unsigned char [20] with struct object_id. Most of this series touches > the merge-recursive code. I've queued them in 'pu', but please read

Re: [PATCH] Make find_commit_subject() more robust

2016-06-21 Thread Junio C Hamano
Johannes Schindelin writes: > Hi Junio, > > On Mon, 20 Jun 2016, Junio C Hamano wrote: > >> Johannes Schindelin writes: >> >> > Just like the pretty printing machinery, we should simply ignore empty >> > lines at the beginning of the

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread Jeff King
On Tue, Jun 21, 2016 at 10:42:52PM +0200, René Scharfe wrote: > >> If we could set the limit to a lower value than 8GB for testing then we > >> could at least check if the extended header is written, e.g. if > >> ustar_size() > >> could be convinced to return 0 every time using a hidden command

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread René Scharfe
Am 21.06.2016 um 17:59 schrieb Jeff King: > On Tue, Jun 21, 2016 at 12:54:11AM +0200, René Scharfe wrote: > >>> Unfortunately, it's quite an expensive test to run. For one >>> thing, unless your filesystem supports files with holes, it >>> takes 64GB of disk space (you might think piping straight

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread Jeff King
On Tue, Jun 21, 2016 at 07:44:55PM +, Robin H. Johnson wrote: > On Thu, Jun 16, 2016 at 12:37:33AM -0400, Jeff King wrote: > > We could ship just the resulting compressed object data as a > > loose object, but even that takes 64MB. So sadly, this code > > path remains untested in the test

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread René Scharfe
Am 21.06.2016 um 22:42 schrieb René Scharfe: > The value 120 is magic; we need it to pass the tests. That's > because prepare_header() is used for building extended header > records as well and we don't create extended headers for extended > headers (not sure if that would work anyway), so they

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread René Scharfe
Am 21.06.2016 um 17:59 schrieb Jeff King: > On Tue, Jun 21, 2016 at 12:54:11AM +0200, René Scharfe wrote: > >>> Unfortunately, it's quite an expensive test to run. For one >>> thing, unless your filesystem supports files with holes, it >>> takes 64GB of disk space (you might think piping straight

Re: Problem with --shallow-submodules option

2016-06-21 Thread Stefan Beller
On Mon, Jun 20, 2016 at 11:32 PM, Istvan Zakar wrote: > Hi, > > Thanks for the answer. > So it means that it is a setting on the server side which can be > activated? (I guess it depends on the version of the server) > I did some reading in the topic. Are you talking about

Re: [PATCH v2] Make find_commit_subject() more robust

2016-06-21 Thread Junio C Hamano
Johannes Schindelin writes: > Just like the pretty printing machinery, we should simply ignore empty > lines at the beginning of the commit messages. Thanks. > > This discrepancy was noticed when an early version of the rebase--helper > produced commit objects with

Re: [PATCH] t7800 readlink not found

2016-06-21 Thread Torsten Bögershausen
On 06/21/2016 08:39 PM, Junio C Hamano wrote: Armin Kunaschik writes: On Tue, May 31, 2016 at 7:51 AM, Junio C Hamano wrote: Torsten Bögershausen writes: diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh index

Re: [PATCH] t5614: don't use subshells

2016-06-21 Thread Stefan Beller
On Tue, Jun 21, 2016 at 12:38 PM, Jeff King wrote: > On Tue, Jun 21, 2016 at 12:18:29PM -0700, Junio C Hamano wrote: > >> Stefan Beller writes: >> >> > Unlike the prior patch we would not want this patch to fall through >> > to origin/maint fast, but allow

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread Robin H. Johnson
On Thu, Jun 16, 2016 at 12:37:33AM -0400, Jeff King wrote: > We could ship just the resulting compressed object data as a > loose object, but even that takes 64MB. So sadly, this code > path remains untested in the test suite. Additionally compress the object data, and insert it for the purpose

Re: [PATCH] t5614: don't use subshells

2016-06-21 Thread Jeff King
On Tue, Jun 21, 2016 at 12:18:29PM -0700, Junio C Hamano wrote: > Stefan Beller writes: > > > Unlike the prior patch we would not want this patch to fall through > > to origin/maint fast, but allow cooking? > > I do not see anything that makes this treated differently

Re: [PATCH v3 2/9] Disallow diffopt.close_file when using the log_tree machinery

2016-06-21 Thread Junio C Hamano
Junio C Hamano writes: > Junio C Hamano writes: > >> Johannes Schindelin writes: >> >>> We are about to teach the log_tree machinery to reuse the diffopt.file >>> setting to output to a file stream different from stdout. >>> >>>

Re: [PATCH v3 2/3] perf: make the tests work in worktrees

2016-06-21 Thread Jeff King
On Fri, May 13, 2016 at 03:25:58PM +0200, Johannes Schindelin wrote: > This patch makes perf-lib.sh more robust so that it can run correctly > even inside a worktree. For example, it assumed that $GIT_DIR/objects is > the objects directory (which is not the case for worktrees) and it used > the

Re: [PATCH v3 2/9] Disallow diffopt.close_file when using the log_tree machinery

2016-06-21 Thread Junio C Hamano
Junio C Hamano writes: > Johannes Schindelin writes: > >> We are about to teach the log_tree machinery to reuse the diffopt.file >> setting to output to a file stream different from stdout. >> >> This means that builtin am can no longer ask the

Re: [PATCH] t5614: don't use subshells

2016-06-21 Thread Junio C Hamano
Stefan Beller writes: > Unlike the prior patch we would not want this patch to fall through > to origin/maint fast, but allow cooking? I do not see anything that makes this treated differently from the other fix. The only difference in behaviour is that "lines" file is

Re: [PATCH v3 1/9] am: stop ignoring errors reported by log_tree_diff()

2016-06-21 Thread Junio C Hamano
Johannes Schindelin writes: > Note: there are more places in the builtin am code that ignore > errors returned from library functions. Fixing those is outside the > purview of the current patch series, though. The caller of parse_mail() and parse_mail_rebase() is not

Re: [PATCH 1/1] git-p4: correct hasBranchPrefix verbose output

2016-06-21 Thread Junio C Hamano
Lars Schneider writes: >> On 21 Jun 2016, at 15:53, Andrew Oakley wrote: >> >> The logic here was inverted, you got a message saying the file is >> ignored for each file that is not ignored. >> --- >> git-p4.py | 2 +- >> 1 file changed, 1

Re: [PATCH v2] perf: accommodate for MacOSX

2016-06-21 Thread Junio C Hamano
Lars Schneider writes: >> On 21 Jun 2016, at 15:53, Johannes Schindelin >> wrote: >> > Looks good to me. Thanks, both, for following thru. Will apply. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a

Re: [PATCH] t7800 readlink not found

2016-06-21 Thread Junio C Hamano
Armin Kunaschik writes: > On Tue, May 31, 2016 at 7:51 AM, Junio C Hamano wrote: >> Torsten Bögershausen writes: >> diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh index 7ce4cd7..905035c 100755 ---

Re: How to find commits unique to a branch

2016-06-21 Thread Junio C Hamano
Nikolaus Rath writes: > On Jun 20 2016, Nikolaus Rath wrote: >> On Jun 20 2016, Junio C Hamano wrote: >>> Nikolaus Rath writes: >>> What's the best way to find all commits in a branch A that have not been

Re: [PATCH 0/2] friendlier handling of overflows in archive-tar

2016-06-21 Thread Junio C Hamano
Jeff King writes: > Junio, this is the jk/big-and-old-archive-tar topic. > > The interdiff is: > ... > diff --git a/archive-tar.c b/archive-tar.c > index c7b85fd..ed562d4 100644 > --- a/archive-tar.c > +++ b/archive-tar.c > @@ -179,7 +179,7 @@ static size_t get_path_prefix(const

Re: [PATCH v3 2/9] Disallow diffopt.close_file when using the log_tree machinery

2016-06-21 Thread Junio C Hamano
Johannes Schindelin writes: > We are about to teach the log_tree machinery to reuse the diffopt.file > setting to output to a file stream different from stdout. > > This means that builtin am can no longer ask the diff machinery to > close the file when actually

Re: [PATCH 1/1] git-p4: correct hasBranchPrefix verbose output

2016-06-21 Thread Lars Schneider
> On 21 Jun 2016, at 15:53, Andrew Oakley wrote: > > The logic here was inverted, you got a message saying the file is > ignored for each file that is not ignored. > --- > git-p4.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/git-p4.py b/git-p4.py

Re: [PATCH v2] perf: accommodate for MacOSX

2016-06-21 Thread Lars Schneider
> On 21 Jun 2016, at 15:53, Johannes Schindelin > wrote: > > As this developer has no access to MacOSX developer setups anymore, > Travis becomes the best bet to run performance tests on that OS. > > However, on MacOSX /usr/bin/time is that good old BSD executable

Re: How to find commits unique to a branch

2016-06-21 Thread Nikolaus Rath
On Jun 20 2016, Nikolaus Rath wrote: > On Jun 20 2016, Junio C Hamano wrote: >> Nikolaus Rath writes: >> >>> What's the best way to find all commits in a branch A that have not been >>> cherry-picked from (or to) another branch B? >>> >>>

Re: [PATCH 1/1] mingw: work around t2300's assuming non-Windows paths

2016-06-21 Thread Junio C Hamano
Junio C Hamano writes: > I think you would need something similar to "pwd -W", that is, leave > "git --exec-path" as a way to give shell scripts people have written > over the years that allows them to say "git-cmd" as long as they do > PATH="$(git --exec-path):$PATH" upfront.

Re: [PATCH 1/1] mingw: work around t2300's assuming non-Windows paths

2016-06-21 Thread Junio C Hamano
Johannes Schindelin writes: >> Hmm, I am confused. `git --exec-path` _is_ meant to "spit out" a >> path that is usable when prepended/appended to $PATH [1], and it >> does _not_ have to be POSIX-ish path. It is totally up to the port >> to adjust it to the

Re: [PATCH 5/5] format-patch: avoid freopen()

2016-06-21 Thread Junio C Hamano
Johannes Schindelin writes: > That is a very convincing argument. So convincing that I wanted to change > the patch to guard behind `diff_use_color_default == GIT_COLOR_AUTO`. I actually was expecting, instead of your: if (output_directory) { +

Re: [BUG REPORT] git 2.9.0 clone --recursive fails on cloning a submodule

2016-06-21 Thread Duy Nguyen
On Sun, Jun 19, 2016 at 12:00 PM, Jeff King wrote: > Stefan, I think it might be worth revisiting the default set by d22eb04 > to propagate shallowness from the super-project clone. In an ideal > world, we would be asking each submodule for the actual commit we are > interested in,

Re: Problem with git-http-backend.exe as iis cgi

2016-06-21 Thread Junio C Hamano
Konstantin Khomoutov writes: > On Thu, 10 Mar 2016 07:28:50 + > Florian Manschwetus wrote: > >> I tried to setup git-http-backend with iis, as iis provides proper >> impersonation for cgi under windows, which leads to have the >>

Re: http-backend fatal error message on shallow clone

2016-06-21 Thread Duy Nguyen
On Tue, Jun 21, 2016 at 2:10 PM, Jeff King wrote: > ... > So this request actually takes _two_ upload-pack instances to serve > (which is not uncommon when we need multiple rounds of > get_common_commits(), though I am a little surprised that would be the > case for a clone). And

Mail still valid?

2016-06-21 Thread Valid
-- 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 1/1] git-p4: correct hasBranchPrefix verbose output

2016-06-21 Thread Andrew Oakley
The logic here was inverted, you got a message saying the file is ignored for each file that is not ignored. --- git-p4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-p4.py b/git-p4.py index b6593cf..b123aa2 100755 --- a/git-p4.py +++ b/git-p4.py @@ -2674,7 +2674,7 @@

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread Jeff King
On Tue, Jun 21, 2016 at 12:54:11AM +0200, René Scharfe wrote: > > Unfortunately, it's quite an expensive test to run. For one > > thing, unless your filesystem supports files with holes, it > > takes 64GB of disk space (you might think piping straight to > > `hash-object --stdin` would be better,

[PATCH v2 2/2] archive-tar: write extended headers for far-future mtime

2016-06-21 Thread Jeff King
The ustar format represents timestamps as seconds since the epoch, but only has room to store 11 octal digits. To express anything larger, we need to use an extended header. This is exactly the same case we fixed for the size field in the previous commit, and the solution here follows the same

[PATCH v2 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread Jeff King
The ustar format has a fixed-length field for the size of each file entry which is supposed to contain up to 11 bytes of octal-formatted data plus a NUL or space terminator. These means that the largest size we can represent is 0777, or 1 byte short of 8GB. The correct solution for a

Re: [PATCH 0/2] friendlier handling of overflows in archive-tar

2016-06-21 Thread Jeff King
On Thu, Jun 16, 2016 at 12:35:23AM -0400, Jeff King wrote: > The ustar format has some fixed-length numeric fields, and it's possible > to generate a git tree that can't be represented (namely file size and > mtime). Since f2f0267 (archive-tar: use xsnprintf for trivial > formatting, 2015-09-24),

Re: [PATCH 1/2] archive-tar: write extended headers for file sizes >= 8GB

2016-06-21 Thread Jeff King
On Tue, Jun 21, 2016 at 11:59:20AM -0400, Jeff King wrote: > > > + if (ustar_size(size) != size) > > > + strbuf_append_ext_header_uint(_header, "size", size); > > > > It needs "S_ISREG(mode) && " as well, no? In practice it probably doesn't > > matter (until someone stores a 8GB long

Re: [PATCH] t7800 readlink not found

2016-06-21 Thread Armin Kunaschik
On Tue, May 31, 2016 at 7:51 AM, Junio C Hamano wrote: > Torsten Bögershausen writes: > >>> diff --git a/t/t7800-difftool.sh b/t/t7800-difftool.sh >>> index 7ce4cd7..905035c 100755 >>> --- a/t/t7800-difftool.sh >>> +++ b/t/t7800-difftool.sh >>> @@ -446,7 +446,7

Re: [PATCH v3 0/9] Let log-tree and friends respect diffopt's `file` field

2016-06-21 Thread Johannes Schindelin
Hi Paul, On Tue, 21 Jun 2016, Paul Tan wrote: > On Tue, Jun 21, 2016 at 6:34 PM, Johannes Schindelin > wrote: > > - this uncovered a problem with builtin am, where it asked the diff > > machinery to close the file stream, but actually called the log_tree > >

Re: [PATCH v3 0/9] Let log-tree and friends respect diffopt's `file` field

2016-06-21 Thread Paul Tan
Hi Johannes, On Tue, Jun 21, 2016 at 6:34 PM, Johannes Schindelin wrote: > - this uncovered a problem with builtin am, where it asked the diff > machinery to close the file stream, but actually called the log_tree > machinery (which might mean that this patch

[PATCH v2] perf: accommodate for MacOSX

2016-06-21 Thread Johannes Schindelin
As this developer has no access to MacOSX developer setups anymore, Travis becomes the best bet to run performance tests on that OS. However, on MacOSX /usr/bin/time is that good old BSD executable that no Linux user cares about, as demonstrated by the perf-lib.sh's use of GNU-ish extensions. And

BONJOUR (( AVEZ-VOUS REÇU MON PREMIER MESSAGE ))

2016-06-21 Thread Robert Gepor
SALUT Je veux vous demander votre avis sur la façon d'investir dans votre pays ?? nos principaux bailleurs sommes prêts à financer des projets rentables et offrir des prêts pour des projets privés, nos Partenaire ( chef financer ) est en Europe, en Asie, Emirats Arabes Unis et l'Afrique Même si

Re: [PATCH] perf: accommodate for MacOSX

2016-06-21 Thread Johannes Schindelin
Hi Lars, On Tue, 21 Jun 2016, Lars Schneider wrote: > > On 21 Jun 2016, at 13:55, Johannes Schindelin > > wrote: > > > >> ... > >> If we don't run any perf tests by default on Travis CI then I wouldn't > >> take the ".travis.yml" part of the patch just to keep our

Re: [PATCH] perf: accommodate for MacOSX

2016-06-21 Thread Lars Schneider
> On 21 Jun 2016, at 13:55, Johannes Schindelin > wrote: > >> ... >> I think we definitively should take the "perf-lib.sh" part of the patch >> as this makes the perf test run on OSX and therefore is a strict >> improvement. > > Yes, it was meant as the starting

[PATCH v2] Make find_commit_subject() more robust

2016-06-21 Thread Johannes Schindelin
Just like the pretty printing machinery, we should simply ignore empty lines at the beginning of the commit messages. This discrepancy was noticed when an early version of the rebase--helper produced commit objects with more than one empty line between the header and the commit message.

Re: [PATCH 0/3] fix local_tzoffset with far-in-future dates

2016-06-21 Thread Jeff King
On Mon, Jun 20, 2016 at 11:37:50PM -0700, Norbert Kiesel wrote: > There are more strange things happening with dates. One example is > that `git commit --date=@4102444799` produces a commit with the > correct author date "Thu Dec 31 15:59:59 2099 -0800" (for my local > timezone which is

Re: http-backend fatal error message on shallow clone

2016-06-21 Thread Jeff King
On Tue, Jun 21, 2016 at 11:23:03AM +, Eric Wong wrote: > I noticed "fatal: The remote end hung up unexpectedly" in server > logs from shallow clones. Totally reproducible in the test > cases, too. The following change shows it: > [...] > [Tue Jun 21 11:07:41.391269 2016] [cgi:error] [pid

Re: [PATCH] mingw: let the build succeed with DEVELOPER=1

2016-06-21 Thread Johannes Schindelin
Hi Junio, On Mon, 20 Jun 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > The recently introduced developer flags identified a couple of > > old-style function declarations in the Windows-specific code where > > the parameter list was left empty

Re: [PATCH] Make find_commit_subject() more robust

2016-06-21 Thread Johannes Schindelin
Hi Junio, On Mon, 20 Jun 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > Just like the pretty printing machinery, we should simply ignore empty > > lines at the beginning of the commit messages. > > > > This discrepancy was noticed when an early

Re: [PATCH 1/1] mingw: work around t2300's assuming non-Windows paths

2016-06-21 Thread Johannes Schindelin
Hi Junio, On Mon, 20 Jun 2016, Junio C Hamano wrote: > Johannes Schindelin writes: > > > On Windows, we have to juggle two different schemes of representing > > paths: the native, Windows paths (the only ones known to the main Git > > executable) on the one hand,

Re: [PATCH] perf: accommodate for MacOSX

2016-06-21 Thread Johannes Schindelin
Hi Lars, On Tue, 21 Jun 2016, Lars Schneider wrote: > > On 20 Jun 2016, at 21:48, Junio C Hamano wrote: > > > > Johannes Schindelin writes: > > > >> On Sun, 19 Jun 2016, Lars Schneider wrote: > >> > On 18 Jun 2016, at 15:03, Johannes

[PATCH 08/11] i18n: send-email: mark strings for translation

2016-06-21 Thread Vasco Almeida
Mark strings often displayed to user for translation. Signed-off-by: Vasco Almeida --- git-send-email.perl | 53 +++-- 1 file changed, 31 insertions(+), 22 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl

[PATCH 01/11] i18n: add--interactive: mark strings for translation

2016-06-21 Thread Vasco Almeida
Mark simple strings (without interpolation) for translation. Brackets around first parameter of ternary operator is necessary because otherwise xgettext fails to extract strings marked for translation from the rest of the file. Signed-off-by: Vasco Almeida ---

[PATCH 07/11] i18n: add--interactive: mark edit_hunk message for translation

2016-06-21 Thread Vasco Almeida
Mark message of edit_hunk_manually displayed in the editing file when user chooses 'e' option. The message had to be unfolded to allow translation of the $participle verb. Some messages end up being exactly the same for some uses cases, but left it for easer change in the future, e.g., wanting

[PATCH 11/11] i18n: difftool: mark warnings for translation

2016-06-21 Thread Vasco Almeida
Signed-off-by: Vasco Almeida --- git-difftool.perl | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/git-difftool.perl b/git-difftool.perl index ebd13ba..fe7f003 100755 --- a/git-difftool.perl +++ b/git-difftool.perl @@ -22,6 +22,7 @@

[PATCH 10/11] i18n: send-email: mark string with interpolation for translation

2016-06-21 Thread Vasco Almeida
Mark warnings, errors and other messages that are interpolated for translation. We must call sprintf() before calling die() and in few other circumstances in order to interpolation take place. Signed-off-by: Vasco Almeida --- git-send-email.perl | 71

[PATCH 09/11] i18n: send-email: mark warnings and errors for translation

2016-06-21 Thread Vasco Almeida
Mark warnings, errors and other messages for translation. Signed-off-by: Vasco Almeida --- git-send-email.perl | 36 ++-- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/git-send-email.perl b/git-send-email.perl index

[PATCH 02/11] i18n: add--interactive: mark simple here documents for translation

2016-06-21 Thread Vasco Almeida
Mark messages in here document without interpolation for translation. Marking for translation by removing here documents this way, rather than take advantage of "print __ << EOF" way, makes other instances of help messages in clean.c match the first two in this file. Otherwise, reusing here

[PATCH 05/11] i18n: add--interactive: mark message for translation

2016-06-21 Thread Vasco Almeida
Mark message assembled in place for translation, unfolding each use case for each entry in the %patch_modes hash table. Previously, this script relied on whether $patch_mode was set to run the command patch_update_cmd() or show status and loop the main loop. Now, it uses $cmd to indicate we must

[PATCH 04/11] i18n: add--interactive: mark plural strings

2016-06-21 Thread Vasco Almeida
Mark plural strings for translation. Unfold each action case in one entire sentence. Pass new keyword for xgettext to extract. Update test to include new subrotine Q__() for plural strings handling. Signed-off-by: Vasco Almeida --- Makefile | 3 ++-

[PATCH 06/11] i18n: add--interactive: i18n of help_patch_cmd

2016-06-21 Thread Vasco Almeida
Mark help message of help_patch_cmd for translation. The message must be unfolded to be free of variables so we can have hight quality translations. Signed-off-by: Vasco Almeida --- git-add--interactive.perl | 65 +++ 1 file

[PATCH 03/11] i18n: add--interactive: mark strings with interpolation for translation

2016-06-21 Thread Vasco Almeida
Use of sprintf following die or error_msg is necessary for placeholder substitution take place. Signed-off-by: Vasco Almeida --- git-add--interactive.perl | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git

http-backend fatal error message on shallow clone

2016-06-21 Thread Eric Wong
I noticed "fatal: The remote end hung up unexpectedly" in server logs from shallow clones. Totally reproducible in the test cases, too. The following change shows it: diff --git a/t/t5561-http-backend.sh b/t/t5561-http-backend.sh index 90e0d6f..cfa55ce 100755 --- a/t/t5561-http-backend.sh +++

[PATCH v3 4/9] line-log: respect diffopt's configured output file stream

2016-06-21 Thread Johannes Schindelin
The diff machinery can optionally output to a file stream other than stdout, by overriding diffopt.file. In such a case, the rest of the log tree machinery should also write to that stream. Currently, there is no user of the line level log that wants to redirect output to a file. Therefore, one

[PATCH v3 7/9] format-patch: explicitly switch off color when writing to files

2016-06-21 Thread Johannes Schindelin
We rely on the auto-detection ("is stdout a terminal?") to determine whether to use color in the output of format-patch or not. That happens to work because we freopen() stdout when redirecting the output to files. However, we are about to fix that work-around, in which case the auto-detection

[PATCH v3 0/9] Let log-tree and friends respect diffopt's `file` field

2016-06-21 Thread Johannes Schindelin
The idea is to allow callers to redirect log-tree's output to a file without having to freopen() stdout (which would modify global state, a big no-no-no for library functions). I reviewed log-tree.c, graph.c, line-log.c, builtin/shortlog.c and builtin/log.c line by line to ensure that all calls

[PATCH v3 2/9] Disallow diffopt.close_file when using the log_tree machinery

2016-06-21 Thread Johannes Schindelin
We are about to teach the log_tree machinery to reuse the diffopt.file setting to output to a file stream different from stdout. This means that builtin am can no longer ask the diff machinery to close the file when actually calling the log_tree machinery (which wants to flush the very same file

[PATCH v3 8/9] format-patch: avoid freopen()

2016-06-21 Thread Johannes Schindelin
We just taught the relevant functions to respect the diffopt.file field, to allow writing somewhere else than stdout. Let's make use of it. Technically, we do not need to avoid that call in a builtin: we assume that builtins (as opposed to library functions) are stand-alone programs that may do

[PATCH v3 1/9] am: stop ignoring errors reported by log_tree_diff()

2016-06-21 Thread Johannes Schindelin
It is never a good idea to ignore errors, so let's handle them. While at it, handle fopen() errors more gently (i.e. give the caller a chance to do something about it rather than die()ing). Note: there are more places in the builtin am code that ignore errors returned from library functions.

[PATCH v3 9/9] format-patch: use stdout directly

2016-06-21 Thread Johannes Schindelin
Earlier, we freopen()ed stdout in order to write patches to files. That forced us to duplicate stdout (naming it "realstdout") because we *still* wanted to be able to report the file names. As we do not abuse stdout that way anymore, we no longer need to duplicate stdout, either. Signed-off-by:

[PATCH v3 5/9] graph: respect the diffopt.file setting

2016-06-21 Thread Johannes Schindelin
When the caller overrides diffopt.file (which defaults to stdout), the diff machinery already redirects its output, and the graph display should also write to that file. Signed-off-by: Johannes Schindelin --- graph.c | 30 +- 1 file

[PATCH v3 6/9] shortlog: support outputting to streams other than stdout

2016-06-21 Thread Johannes Schindelin
This will be needed to avoid freopen() in `git format-patch`. Signed-off-by: Johannes Schindelin --- builtin/shortlog.c | 13 - shortlog.h | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/builtin/shortlog.c

[PATCH v3 3/9] log-tree: respect diffopt's configured output file stream

2016-06-21 Thread Johannes Schindelin
The diff options already know how to print the output anywhere else than stdout. The same is needed for log output in general, e.g. when writing patches to files in `git format-patch`. Let's allow users to use log_tree_commit() *without* changing global state via freopen(). Signed-off-by:

Re: [PATCH v2 1/7] log-tree: respect diffopt's configured output file stream

2016-06-21 Thread Johannes Schindelin
Hi, On Tue, 21 Jun 2016, Johannes Schindelin wrote: > On Tue, 21 Jun 2016, Johannes Schindelin wrote: > > > Expect v3 in a moment. > > I am sorry. The regression test suite just sounded red alert. So: do not > expect v3 in a moment, but later today. So making maybe_flush_or_die() uncovered a

Re: Filters should be parallelized if needed

2016-06-21 Thread Lars Schneider
> On 21 Jun 2016, at 09:50, LUCAS Thomas (EXT) > wrote: > > Setup: > - 2.9.0.windows.1 x64 on a windows 7 16g ram, ssd > - No particular installation settings, default. > > Details: > - Running git from either a cmd or GitExtensions, I encountered an issue >

Re: How to find commits unique to a branch

2016-06-21 Thread Michael J Gruber
Nikolaus Rath venit, vidit, dixit 21.06.2016 01:21: > On Jun 20 2016, Junio C Hamano wrote: >> Nikolaus Rath writes: >> >>> What's the best way to find all commits in a branch A that have not been >>> cherry-picked from (or to) another branch B? >>> >>> I

[PATCH] Improved example "To move the whole tree into a subdirectory..." to not fail when early commits are empty.

2016-06-21 Thread Brett Randall
Previously this example would fail if the oldest commit(s) in any filtered branch is/are empty (no files) because the index would not change, and the mv would fail with: mv: cannot stat /index.new': No such file or directory This commonly occurs with histories created from

Re: [PATCH] perf: accommodate for MacOSX

2016-06-21 Thread Lars Schneider
> On 20 Jun 2016, at 21:48, Junio C Hamano wrote: > > Johannes Schindelin writes: > >> On Sun, 19 Jun 2016, Lars Schneider wrote: >> On 18 Jun 2016, at 15:03, Johannes Schindelin wrote: As this

Filters should be parallelized if needed

2016-06-21 Thread LUCAS Thomas (EXT)
Setup: - 2.9.0.windows.1 x64 on a windows 7 16g ram, ssd - No particular installation settings, default. Details: - Running git from either a cmd or GitExtensions, I encountered an issue while staging or checkout of lfs files. I am processing 3000 files for a total of 500MB. Files are

Re: [PATCH v2 1/7] log-tree: respect diffopt's configured output file stream

2016-06-21 Thread Johannes Schindelin
Hi, On Tue, 21 Jun 2016, Johannes Schindelin wrote: > Expect v3 in a moment. I am sorry. The regression test suite just sounded red alert. So: do not expect v3 in a moment, but later today. Ciao, Dscho -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message

Re: [RFC/PATCH] push: deny policy to prevent pushes to unwanted remotes.

2016-06-21 Thread Lars Schneider
> On 21 Jun 2016, at 08:20, Matthieu Moy wrote: > > Antoine Queru writes: > >> However, in the last version, if we want to deny an website, >> including all schemes, we can blacklist the url without the >> scheme. For

  1   2   >