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
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
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
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`).
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
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
---
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,
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.
--
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
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
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
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
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
---
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
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
> ---
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
---
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.
>> >
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
> > >
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
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
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
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.
"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
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
>
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 =
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
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
> +
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
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
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
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
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,
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
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
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.
>
>
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
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
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
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
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
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
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
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
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
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
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)
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
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 &&
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
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
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
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
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
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
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
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
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:
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,
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
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
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
61 matches
Mail list logo