Re: [PATCH v2] l10n: de.po: translate 68 new messages

2015-12-29 Thread Ralf Thielow
2015-12-28 20:32 GMT+01:00 Matthias Rüster : > Hi Ralf, > >> #: builtin/submodule--helper.c:273 >> msgid "fatal: submodule--helper subcommand must be called with a >> subcommand" >> -msgstr "" >> +msgstr "fatal: submodule-helper muss mit einem Unterkommando

Re: [PATCH] notes: allow merging from arbitrary references

2015-12-29 Thread Junio C Hamano
Junio C Hamano writes: > OK, will try to queue again (but I am cutting an -rc today so it may > have to wait a bit). Those who have been involved in the notes topics > need to review it before the patch can make progress, though. Just FYI, with this the tip of 'pu' seems to

[PATCH V5 2/2] user-manual: add section documenting shallow clones

2015-12-29 Thread Stephen P. Smith
Rather than merely pointing readers at the 1.5 release notes to learn about shallow clones, document them formally. Signed-off-by: Stephen P. Smith --- Notes: Added a paragraph about the fundamental limitation with merging histories that do not have a merge base in the

Re: "git stash pop" is doing an unwanted "git add" when there are conflicts.

2015-12-29 Thread Junio C Hamano
Jeff King writes: > Yeah, I think I agree. But keep in mind that we have to mention the > conflicts _somewhere_, so we're going to touch the index regardless (and > the user is going to have to erase the conflicts in the index > eventually, either with `git add` or `git reset`).

[PATCH V4 1/2] glossary: define the term shallow clone

2015-12-29 Thread Stephen P. Smith
There are several places in the documentation that the term shallow clone is used. Defining the term enables its use elsewhere with a known definition. Signed-off-by: Stephen P. Smith --- Notes: The review comments for the user guide update[1] suggested a change in the

[PATCH v3] l10n: de.po: translate 68 new messages

2015-12-29 Thread Ralf Thielow
Translate 68 new messages came from git.pot update in f4f2c8f (l10n: git.pot: v2.7.0 round 1 (66 new, 29 removed)) and 2c0ca05 (l10n: git.pot: v2.7.0 round 2 (2 new, 2 removed)). Signed-off-by: Ralf Thielow Acked-by: Matthias Rüster ---

Re: [PATCH v2 0/3] improve symbolic-ref robustness

2015-12-29 Thread Junio C Hamano
Michael Haggerty writes: > On 12/29/2015 06:55 AM, Jeff King wrote: > >> The patches are: >> >> [1/3]: create_symref: modernize variable names >> [2/3]: create_symref: use existing ref-lock code >> [3/3]: create_symref: write reflog while holding lock > > Thanks,

Re: [PATCH 3/6] apply: fix adding new files on i-t-a entries

2015-12-29 Thread Junio C Hamano
Duy Nguyen writes: > Not enough energy to go through this. Will do later and post new > proposed commit message. I do not have as much issue with the log message as what the patch does, actually; this change does not look like a good one, which is a more serious problem. --

Re: [PATCH/RFC v2 0/2] add regex match flags to git describe

2015-12-29 Thread Junio C Hamano
Mostyn Bramley-Moore writes: >> I do not think it is wrong per-se to add an option to use regular >> expressions instead of globs, but if we are to do so, the endgame we >> aim for MUST be that we do so consistently to all the other commands >> that iterate over refs and limit

Re: [PATCH 00/20] More flexibility in making shallow clones

2015-12-29 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > This series brings three new options to shallow clone/fetch. --since > lets you specify cut point by time. --not cuts by excluding specified > refs. And --deepen= extends shallow boundary in a more predictable > way. Some of these were requested

Re: [RFC/PATCH 4/3] create_symref: drop support for writing symbolic links

2015-12-29 Thread Junio C Hamano
Jeff King writes: > A conservative choice would probably be to issue a deprecation warning > when we see it defined, wait a few versions, and then apply the patch > below. I agree with the analysis below. And I agree that in the ideal world, it would have been better not to add

Re: [PATCH V5 2/2] user-manual: add section documenting shallow clones

2015-12-29 Thread Junio C Hamano
Junio C Hamano writes: > Thanks for working on this. Perhaps the last paragraph can be like > this? > > Merging inside a <> will work > as long as a merge base is found in the resent history. > Otherwise, it will be like merging

[PATCH V7 2/2] user-manual: add section documenting shallow clones

2015-12-29 Thread Stephen P. Smith
Signed-off-by: Stephen P. Smith --- Documentation/user-manual.txt | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt index 1c790ac..ce347ff 100644 ---

Re: [PATCH 1/2] avoid shifting signed integers 31 bits

2015-12-29 Thread Junio C Hamano
Jeff King writes: > diff --git a/diff.h b/diff.h > index f7208ad..893f446 100644 > --- a/diff.h > +++ b/diff.h > @@ -91,7 +91,7 @@ typedef struct strbuf *(*diff_prefix_fn_t)(struct > diff_options *opt, void *data) > #define DIFF_OPT_DIRSTAT_BY_LINE (1 << 28) > #define

Re: [PATCH v4 01/10] dir: free untracked cache when removing it

2015-12-29 Thread Junio C Hamano
Christian Couder writes: > Signed-off-by: Christian Couder > --- > builtin/update-index.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/builtin/update-index.c b/builtin/update-index.c > index 7431938..a6fff87 100644 > ---

[PATCH V6 2/2] user-manual: add section documenting shallow clones

2015-12-29 Thread Stephen P. Smith
Signed-off-by: Stephen P. Smith --- Documentation/user-manual.txt | 23 --- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt index 1c790ac..15e97d3 100644 ---

Re: [PATCH V5 2/2] user-manual: add section documenting shallow clones

2015-12-29 Thread Junio C Hamano
Stephen & Linda Smith writes: > On Tuesday, December 29, 2015 11:24:00 AM Junio C Hamano wrote: >> "Stephen P. Smith" writes: >> >> > Rather than merely pointing readers at the 1.5 release notes to >> > learn about shallow clones, document them formally. >> >

Re: "git stash pop" is doing an unwanted "git add" when there are conflicts.

2015-12-29 Thread Alan Mackenzie
Hello, Jeff. On Tue, Dec 29, 2015 at 02:53:30AM -0500, Jeff King wrote: > On Thu, Dec 24, 2015 at 09:20:38AM +, Alan Mackenzie wrote: > > > It seems to be a side effect of merge-recursive to stage the results, > > > and in the no-conflict path we explicitly reset the index. For the > > >

Re: [PATCH v2 0/3] improve symbolic-ref robustness

2015-12-29 Thread Junio C Hamano
Jeff King writes: > On Sun, Dec 20, 2015 at 02:26:37AM -0500, Jeff King wrote: > >> I noticed that an interrupt "git symbolic-ref" will not clean up >> "HEAD.lock". So I started this series as an attempt to convert >> create_symref() to "struct lock_file" to get the usual tempfile

Re: [PATCH v4 03/10] update-index: add --test-untracked-cache

2015-12-29 Thread Junio C Hamano
Christian Couder writes: > It is nice to just be able to test if untracked cache is > supported without enabling it. > > Signed-off-by: Christian Couder > --- > Documentation/git-update-index.txt | 12 +++- > builtin/update-index.c

Re: [PATCH] git-p4.py: add support for filetype change

2015-12-29 Thread Romain Picard
Le 26.12.2015 11:26, Luke Diamand a écrit : On 21 December 2015 at 13:09, Romain Picard wrote: After changing the type of a file in the git repository, it is not possible to "git p4 publish" the commit to perforce. This is due to the fact that the git "T" status is

Re: [PATCH v2 0/3] nd/clear-gitenv-upon-use-of-alias

2015-12-29 Thread Junio C Hamano
Jeff King writes: > The outer git wrapper doesn't start the pager, so its stderr still gets > seen by the user. But the _inner_ git-log does start the pager, and then > dies of SIGPIPE. > > So yeah, I think we want something like this on top of > nd/clear-gitenv-upon-use-of-alias.

Re: [PATCH V5 2/2] user-manual: add section documenting shallow clones

2015-12-29 Thread Junio C Hamano
"Stephen P. Smith" writes: > Rather than merely pointing readers at the 1.5 release notes to > learn about shallow clones, document them formally. > > Signed-off-by: Stephen P. Smith > --- Thanks. I do not think the reference to RelNotes were meant for the

Re: [PATCH V5 2/2] user-manual: add section documenting shallow clones

2015-12-29 Thread Stephen & Linda Smith
On Tuesday, December 29, 2015 11:24:00 AM Junio C Hamano wrote: > "Stephen P. Smith" writes: > > > Rather than merely pointing readers at the 1.5 release notes to > > learn about shallow clones, document them formally. > > > > Signed-off-by: Stephen P. Smith >

Re: [PATCH v4 08/10] dir: simplify untracked cache "ident" field

2015-12-29 Thread Junio C Hamano
Christian Couder writes: > -static int ident_in_untracked(const struct untracked_cache *uc) > +static int ident_current_location_in_untracked(const struct untracked_cache > *uc) > { > - const char *end = uc->ident.buf + uc->ident.len; > - const char *p =

[PATCH v2] notes: allow merging from arbitrary references

2015-12-29 Thread Jacob Keller
From: Jacob Keller Create a new expansion function, expand_loose_notes_ref which will first check whether the ref can be found using get_sha1. If it can't be found then it will fallback to using expand_notes_ref. The content of the strbuf will not be changed if the notes

Re: [PATCH v4 09/10] config: add core.untrackedCache

2015-12-29 Thread Junio C Hamano
Christian Couder writes: > +core.untrackedCache:: > + Determines if untracked cache will be automatically enabled or > + disabled. It can be `keep`, `true` or `false`. Before setting > + it to `true`, you should check that mtime is working properly > +

Re: [RFC/PATCH 4/3] create_symref: drop support for writing symbolic links

2015-12-29 Thread Jeff King
On Wed, Dec 30, 2015 at 01:53:43AM -0500, Jeff King wrote: > On Tue, Dec 29, 2015 at 10:32:04AM -0800, Junio C Hamano wrote: > > > Jeff King writes: > > > > > A conservative choice would probably be to issue a deprecation warning > > > when we see it defined, wait a few

Re: [PATCH v2 0/3] improve symbolic-ref robustness

2015-12-29 Thread Jeff King
On Tue, Dec 29, 2015 at 01:24:42PM -0800, Junio C Hamano wrote: > > The patches are: > > > > [1/3]: create_symref: modernize variable names > > [2/3]: create_symref: use existing ref-lock code > > [3/3]: create_symref: write reflog while holding lock > > This is queued as an early part of

Re: [RFC/PATCH 4/3] create_symref: drop support for writing symbolic links

2015-12-29 Thread Jeff King
On Tue, Dec 29, 2015 at 10:32:04AM -0800, Junio C Hamano wrote: > Jeff King writes: > > > A conservative choice would probably be to issue a deprecation warning > > when we see it defined, wait a few versions, and then apply the patch > > below. > > I agree with the analysis

Re: [PATCH 1/2] prepare_packed_git(): refactor garbage reporting in pack directory

2015-12-29 Thread Jeff King
On Wed, Nov 04, 2015 at 02:08:21PM -0600, Doug Kelly wrote: > On Wed, Nov 4, 2015 at 2:02 PM, Jeff King wrote: > > Definitely cleaning up the .bitmap is sane and not racy (it's in the > > same boat as the .idx, I think). > > > > .keep files are more tricky. I'd have to go over the

Re: "git stash pop" is doing an unwanted "git add" when there are conflicts.

2015-12-29 Thread Jeff King
On Tue, Dec 29, 2015 at 09:20:38PM +, Alan Mackenzie wrote: > > Yeah, I think I agree. But keep in mind that we have to mention the > > conflicts _somewhere_, so we're going to touch the index regardless (and > > the user is going to have to erase the conflicts in the index > > eventually,

Re: [PATCH 1/2] avoid shifting signed integers 31 bits

2015-12-29 Thread Jeff King
On Tue, Dec 29, 2015 at 04:09:21PM -0800, Junio C Hamano wrote: > > diff --git a/diff.h b/diff.h > > index f7208ad..893f446 100644 > > --- a/diff.h > > +++ b/diff.h > > @@ -91,7 +91,7 @@ typedef struct strbuf *(*diff_prefix_fn_t)(struct > > diff_options *opt, void *data) > > #define

Re: "git stash pop" is doing an unwanted "git add" when there are conflicts.

2015-12-29 Thread Jeff King
On Tue, Dec 29, 2015 at 11:04:20AM -0800, Junio C Hamano wrote: > [...] > In the above, I suggested to "git reset" when there is no conflict. > I think this line of thinking can be followed even further to > selectively reset the paths that were cleanly merged (which is added > by the call to

Re: [PATCH v2 0/3] nd/clear-gitenv-upon-use-of-alias

2015-12-29 Thread Jeff King
On Thu, Dec 24, 2015 at 04:35:33PM +0700, Duy Nguyen wrote: > On Thu, Dec 24, 2015 at 4:31 AM, Jeff King wrote: > > 2. I doubt anybody is actually seeing this in practice anymore. But > > maybe I am misunderstanding something in Duy's series that changes > > this. > >

Re: [PATCH v2 0/3] improve symbolic-ref robustness

2015-12-29 Thread Michael Haggerty
On 12/29/2015 06:55 AM, Jeff King wrote: > On Sun, Dec 20, 2015 at 02:26:37AM -0500, Jeff King wrote: > >> I noticed that an interrupt "git symbolic-ref" will not clean up >> "HEAD.lock". So I started this series as an attempt to convert >> create_symref() to "struct lock_file" to get the usual

[PATCH 19/20] t5500: test for shallow depth excluding a ref

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- t/t5500-fetch-pack.sh | 18 ++ 1 file changed, 18 insertions(+) diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh index 338b46e..2259631 100755 --- a/t/t5500-fetch-pack.sh +++ b/t/t5500-fetch-pack.sh @@ -655,4

[PATCH 12/20] fetch: define shallow boundary with --since

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/fetch-options.txt | 4 builtin/fetch.c | 12 ++-- fetch-pack.c| 12 +++- fetch-pack.h| 1 + transport.c | 4

Re: [PATCH] worktree: stop supporting moving worktrees manually

2015-12-29 Thread Duy Nguyen
On Mon, Dec 28, 2015 at 1:22 PM, Eric Sunshine wrote: > On Sun, Dec 27, 2015 at 10:43:16AM +0700, Nguyễn Thái Ngọc Duy wrote: >> The current update_linked_gitdir() has a bug that can create "gitdir" >> file in non-multi-worktree setup. Instead of fixing this, we step back

[PATCH 00/20] More flexibility in making shallow clones

2015-12-29 Thread Nguyễn Thái Ngọc Duy
This series brings three new options to shallow clone/fetch. --since lets you specify cut point by time. --not cuts by excluding specified refs. And --deepen= extends shallow boundary in a more predictable way. Some of these were requested in the past. An important point of this series is it

Re: [PATCH 14/20] Add test_repo_expect_success for running tests in a new repository

2015-12-29 Thread Duy Nguyen
On Tue, Dec 29, 2015 at 7:10 PM, Nguyễn Thái Ngọc Duy wrote: > This could be convenient when tests are independent from the rest in the > same file. Normally we would do this > ... Before anybody comments about this patch. I missed Junio and Jeff's comments when the patch was

Re: [PATCH] Fix "inside work tree" detection on case-insensitive filesystems

2015-12-29 Thread Michael Haggerty
On 09/28/2015 06:12 PM, Johannes Schindelin wrote: > Git has a config variable to indicate that it is operating on a file > system that is case-insensitive: core.ignoreCase. But the > `dir_inside_of()` function did not respect that. As a result, if Git's > idea of the current working directory

[PATCH 03/20] upload-pack: remove unused variable "backup"

2015-12-29 Thread Nguyễn Thái Ngọc Duy
After the last patch, "result" and "backup" are the same. "result" used to move, but the movement is now contained in send_shallow(). Delete this redundant variable. Signed-off-by: Nguyễn Thái Ngọc Duy --- upload-pack.c | 6 +++--- 1 file changed, 3 insertions(+), 3

[PATCH 01/20] upload-pack: move shallow deepen code out of receive_needs()

2015-12-29 Thread Nguyễn Thái Ngọc Duy
This is a prep step for further refactoring. Besides reindentation and s/shallows\./shallows->/g, no other changes are expected. Signed-off-by: Nguyễn Thái Ngọc Duy --- upload-pack.c | 99 +++ 1 file changed, 52

[PATCH 05/20] shallow.c: implement a generic shallow boundary finder based on rev-list

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Instead of a custom commit walker like get_shallow_commits(), this new function uses rev-list to mark NOT_SHALLOW to all reachable commits, except borders. The definition of reachable is to be defined by the protocol later. This makes it more flexible to define shallow boundary. Note: if a commit

[PATCH 08/20] upload-pack: tighten number parsing at "deepen" lines

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- upload-pack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload-pack.c b/upload-pack.c index e9594d1..573ffa2 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -648,9 +648,9 @@ static void receive_needs(void)

[PATCH 15/20] t5500: test for shallow depth since a specific date

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- t/t5500-fetch-pack.sh | 18 ++ 1 file changed, 18 insertions(+) diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh index 3a9b775..338b46e 100755 --- a/t/t5500-fetch-pack.sh +++ b/t/t5500-fetch-pack.sh @@ -637,4

[PATCH 14/20] Add test_repo_expect_success for running tests in a new repository

2015-12-29 Thread Nguyễn Thái Ngọc Duy
This could be convenient when tests are independent from the rest in the same file. Normally we would do this test_expect_success '...' ' git init foo && ( cd foo &&

[PATCH 13/20] clone: define shallow clone boundary based on time with --since

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/git-clone.txt | 3 +++ builtin/clone.c | 16 +--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 6bf000d..28993c6

[PATCH 20/20] fetch: add --deepen= to extend shallow boundary by commits

2015-12-29 Thread Nguyễn Thái Ngọc Duy
In git-fetch, --depth argument is always relative with the latest remote refs. This makes it a bit difficult to cover this use case, where the user wants to make the shallow history, say 3 levels deeper. It would work if remote refs have not moved yet, but nobody can guarantee that, especially

[PATCH 10/20] fetch-pack: use a common function for verbose printing

2015-12-29 Thread Nguyễn Thái Ngọc Duy
This reduces the number of "if (verbose)" which makes it a bit easier to read imo. It also makes it easier to redirect all these printouts, to a file for example. Signed-off-by: Nguyễn Thái Ngọc Duy --- fetch-pack.c | 88

[PATCH 11/20] fetch-pack: use a separate flag for fetch in deepening mode

2015-12-29 Thread Nguyễn Thái Ngọc Duy
The shallow repo could be deepened or shortened when then user gives --depth. But in future that won't be the only way to deepen/shorten a repo. Stop relying on args->depth in this mode. Future deepening methods can simply set this flag on instead of updating all these if expressions. The new

[PATCH 17/20] fetch: define shallow boundary with --not

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/fetch-options.txt | 5 + builtin/fetch.c | 17 - fetch-pack.c| 15 ++- fetch-pack.h| 1 + transport.c | 4

[PATCH 18/20] clone: define shallow clone boundary with --not

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/git-clone.txt | 5 + builtin/clone.c | 18 +- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt index 28993c6..3589e57

[PATCH 16/20] upload-pack: support define shallow boundary by excluding revisions

2015-12-29 Thread Nguyễn Thái Ngọc Duy
This should allow the user to say "create a shallow clone of this branch after version ". deepen-not cannot be used with deepen the same way deepen-since cannot be used with deepen. But deepen-not can be mixed with deepen-since. The result is exactly how you do the command "git rev-list

[PATCH 04/20] upload-pack: move "unshallow" sending code out of deepen()

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- upload-pack.c | 33 - 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/upload-pack.c b/upload-pack.c index 4774f78..4bb104c 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -552,21 +552,10

[PATCH 02/20] upload-pack: move "shallow" sending code out of deepen()

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- upload-pack.c | 25 +++-- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/upload-pack.c b/upload-pack.c index 97ed620..0eb9a0b 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -538,6 +538,20 @@ error:

[PATCH 09/20] upload-pack: add deepen-since to cut shallow repos based on time

2015-12-29 Thread Nguyễn Thái Ngọc Duy
This should allow the user to say "create a shallow clone containing the work from last year" (once the client side is fixed up, of course). In theory deepen-since and deepen (aka --depth) can be used together to draw the shallow boundary (whether it's intersection or union is up to discussion,

[PATCH 06/20] upload-pack: glue code to use get_shallow_commits_by_rev_list

2015-12-29 Thread Nguyễn Thái Ngọc Duy
The remaining thing to do is protocol extensions and translate the requests to rev-list options. Signed-off-by: Nguyễn Thái Ngọc Duy --- upload-pack.c | 12 1 file changed, 12 insertions(+) diff --git a/upload-pack.c b/upload-pack.c index 4bb104c..9ae09a0 100644

[PATCH 07/20] upload-pack: use skip_prefix() instead of starts_with() when possible

2015-12-29 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- upload-pack.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/upload-pack.c b/upload-pack.c index 9ae09a0..e9594d1 100644 --- a/upload-pack.c +++ b/upload-pack.c @@ -276,7 +276,7 @@ static

Re: [PATCH 3/6] apply: fix adding new files on i-t-a entries

2015-12-29 Thread Duy Nguyen
On Mon, Dec 28, 2015 at 10:01 AM, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > >> Suppose that you came up with some contents to register at path F in >> your working tree, told Git about your intention with "add -N F", and >> then tried to apply