Thanks Junio, I understand the option's meaning now :)
On Thu, Apr 14, 2016 at 4:37 AM, Junio C Hamano wrote:
> Andrey Hsiao writes:
>
>> Dear list:
>>
>> Just encountered the --merge option for git log.
>>
>> In the man page, it has the following explanation:
>> - After a failed merge, show ref
On Tue, Apr 12, 2016 at 07:15:34PM -0400, David Turner wrote:
>
> If SHA-1 is broken (in certain ways), someone *can* replace an
> arbitrary blob. GPG does not help in this case, because the signature
> is over the commit object (which points to a tree, which eventually
> points to the blob), and
On Wed, Apr 13, 2016 at 3:41 PM, Jeff King wrote:
> On Wed, Apr 13, 2016 at 03:18:24PM -0700, Stefan Beller wrote:
>
>> * This is your preference for whole-tree operations. What are
>>whole-tree operations? (Is there a concise definition?
>>Are submodules whole tree operations?)
>>Thes
On Wed, Apr 13, 2016 at 03:42:44PM -0700, Junio C Hamano wrote:
> Mike Hommey writes:
>
> > Should git-rebase use full sha-1s under the hood to avoid these type of
> > races?
>
> It already should be doing so since Aug 2013, IIRC.
I'm using 2.8.1. Would there have been a regression?
Mike
--
To
Stefan Beller writes:
> ... so what is your concern for holding instead of merging?
Nothing specific. Remember, I may be aware of all the discussion
threads but I am certainly not reading every word in every thread.
When the participants are trustworthy enough, instead of going back
to the list
Mike Hommey writes:
> Should git-rebase use full sha-1s under the hood to avoid these type of
> races?
It already should be doing so since Aug 2013, IIRC.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info
On Wed, Apr 13, 2016 at 03:18:24PM -0700, Stefan Beller wrote:
> * This is your preference for whole-tree operations. What are
>whole-tree operations? (Is there a concise definition?
>Are submodules whole tree operations?)
>These questions are motivated by origin/sb/submodule-path-misc
Stefan Beller writes:
> * What are
>whole-tree operations?
"git merge" does not let you merge "changes just in my current
directory". You only merge the whole tree, and you can get
conflicts from all over the tree, not just in your current
directory.
--
To unsubscribe from this list:
On Mon, Apr 11, 2016 at 12:04:02PM -0400, Isaac Levy wrote:
> I use a git server which requires authentication over https. Git seems
> determined to always try an unauthenticated request first, slowing
> down operations by a couple seconds.
>
> Is there a way to configure git to default to authen
On Wed, Apr 13, 2016 at 3:23 PM, Junio C Hamano wrote:
> Stefan Beller writes:
>
>>
>> Ok fixed this instance here, too.
>
> ... So... should I hold sb/submodule-helper-clone-regression-fix?
> It has been marked to be merged to 'next' for some time now.
(Both things Ramsay pointed at are in subm
Hi,
Something interesting happened to me. I was in the middle of an
interactive rebase, and after a --continue, I got:
error: short SHA1 e34ff55 is ambiguous.
fatal: Needed a single revision
Invalid commit name: e34ff55
One thing that happened, is that, while running that interactive rebase,
I /
On Mon, Apr 11, 2016 at 10:49:19PM +0100, Jason Vas Dias wrote:
> Is there any option I can specify to get the clone to timeout, or do I
> manually
> have to strace the git process and send it a signal after a hang is detected?
Oh, one other thing you might consider, it something like "timeout"
On Mon, Apr 11, 2016 at 10:49:19PM +0100, Jason Vas Dias wrote:
> It appears GIT has no way of specifying a timeout for a clone operation -
> if the server decides not to complete a get request, the clone can
> hang forever -
> is this correct ?
Yes. Git's protocol has no timeouts, though each si
Stefan Beller writes:
>
> Ok fixed this instance here, too.
... So... should I hold sb/submodule-helper-clone-regression-fix?
It has been marked to be merged to 'next' for some time now.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.
On Wed, Apr 13, 2016 at 2:58 PM, Junio C Hamano wrote:
> Stefan Beller writes:
>
>> $ cd t/
>> $ git merge ...
>> ...
>> Auto-merging builtin/submodule--helper.c
>> Auto-merging builtin/fetch.c
>> CONFLICT (content): Merge conflict in builtin/fetch.c
>> Auto-merging builtin/clone.c
>> Auto-mergin
On Thu, Apr 14, 2016 at 12:31:41AM +0530, Karthik Nayak wrote:
> On Wed, Apr 13, 2016 at 8:42 PM, Junio C Hamano wrote:
> >>> Having said that, doesn't this need to be further adjusted for
> >>> 95c38fb0 (branch: fix shortening of non-remote symrefs, 2016-04-03)?
> >>>
> >>> http://thread.gmane.o
On Wed, Apr 13, 2016 at 01:12:06PM -0600, Bryan Turner wrote:
> From the credentials code in Git (which I could be mis-reading; I'm
> sure others on the list will correct me if I'm wrong), it appears the
> erase is done after a cached credential is rejected by the server.
> That implies that, peri
Stephen Kelly wrote:
> cmake describe --contains
Oops, I mean git describe --contains of course.
Thanks,
Steve.
--
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-in
Stefan Beller writes:
> $ cd t/
> $ git merge ...
> ...
> Auto-merging builtin/submodule--helper.c
> Auto-merging builtin/fetch.c
> CONFLICT (content): Merge conflict in builtin/fetch.c
> Auto-merging builtin/clone.c
> Auto-merging README.md
> ...
>
> It should say ../builtin/fetch.c IMHO.
> Any
Stefan Beller wrote:
> We also want to have 4b9ab0ee0130~1^2 to work `right`, in the sense
> that not just the hexadecimals are highlighted and linking to
> 4b9ab0ee0130, but the whole expression should link to 49e863b02ae177.
Presumably the same logic which finds 4b9ab0ee0130 to link it can also
Stefan Beller writes:
> But it should not be just tags?
>
> We also want to have 4b9ab0ee0130~1^2 to work `right`,
I'd consider that just "crazy", though. I'd be just happy to see
4b9ab0ee0130 highlighted and lead to the named commit, i.e. as long
as ~1^2 is not part of the link, it is sufficie
Amadeusz Żołnowski writes:
>> Has anything happened to this topic after this? I am wondering if I
>> should discard the topic az/p4-bare-no-rebase without prejudice.
>
> Sorry, I haven't got time to take a loot at this, but I'll return to
> that soon, OK? I'll prepare a patch with an option to s
On Wed, Apr 13, 2016 at 2:32 PM, Junio C Hamano wrote:
> Stefan Beller writes:
>
>> How would you know(/code) that v1.6.0-rc0~120^2 is a text worth linking?
>> "v1.6.0-rc0" is a custom string as that is how we name tags in this project.
>> It can follow any convention in other projects.
>>
>> May
Stefan Beller wrote:
> How would you know(/code) that v1.6.0-rc0~120^2 is a text worth linking?
> "v1.6.0-rc0" is a custom string as that is how we name tags in this
> project. It can follow any convention in other projects.
>
> Maybe a first approximation is if there is a `~` followed by numbers
$ cd t/
$ git merge ...
...
Auto-merging builtin/submodule--helper.c
Auto-merging builtin/fetch.c
CONFLICT (content): Merge conflict in builtin/fetch.c
Auto-merging builtin/clone.c
Auto-merging README.md
...
It should say ../builtin/fetch.c IMHO.
Any reason to keep the old behavior?
Thanks,
Stefa
Stefan Beller writes:
> How would you know(/code) that v1.6.0-rc0~120^2 is a text worth linking?
> "v1.6.0-rc0" is a custom string as that is how we name tags in this project.
> It can follow any convention in other projects.
>
> Maybe a first approximation is if there is a `~` followed by number
On Wed, Apr 13, 2016 at 1:36 PM, Stephen Kelly wrote:
> Hi,
>
> If I look at git commit 89ea90351dd32fbe384d0cf844640a9c55606f3b in gitk, it
> does not linkify the v1.6.0-rc0~120^2 in the commit message.
>
> Is there any reason for that, or can gitk be changed?
Sure it can be changed. Go for it.
Ramsay Jones writes:
> Also, I note that t7406-submodule-update.sh test #4 is failing.
> (looks like absolute vs relative paths)
I think that is $gmane/291363
http://thread.gmane.org/gmane.comp.version-control.git/291334/focus=291363
--
To unsubscribe from this list: send the line "unsubscribe
Hi,
Junio C Hamano writes:
> Has anything happened to this topic after this? I am wondering if I
> should discard the topic az/p4-bare-no-rebase without prejudice.
Sorry, I haven't got time to take a loot at this, but I'll return to
that soon, OK? I'll prepare a patch with an option to skip reb
Hi,
If I look at git commit 89ea90351dd32fbe384d0cf844640a9c55606f3b in gitk, it
does not linkify the v1.6.0-rc0~120^2 in the commit message.
Is there any reason for that, or can gitk be changed?
Thanks,
Steve.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of
Andrey Hsiao writes:
> Dear list:
>
> Just encountered the --merge option for git log.
>
> In the man page, it has the following explanation:
> - After a failed merge, show refs that touch files having a conflict
> and don't exist on all heads to merge.
git log --merge [options] -- $path
On Wed, Apr 13, 2016 at 12:21 PM, Ramsay Jones
wrote:
>
>
> On 12/04/16 16:58, Stefan Beller wrote:
>> On Fri, Apr 1, 2016 at 7:41 AM, Ramsay Jones
>> wrote:
>>>
> [snip[
>
- }
+ sm_gitdir_rel = strbuf_detach(&sb, NULL);
>>>
>>> ... this is good, but ...
>>>
+ sm_gitdir
On 12/04/16 16:58, Stefan Beller wrote:
> On Fri, Apr 1, 2016 at 7:41 AM, Ramsay Jones
> wrote:
>>
[snip[
>>> - }
>>> + sm_gitdir_rel = strbuf_detach(&sb, NULL);
>>
>> ... this is good, but ...
>>
>>> + sm_gitdir = absolute_path(sm_gitdir_rel);
>>>
>>> if (!is_absolute_path(pa
Ken,
I'm one of the developers for Atlassian Bitbucket Server (formerly
Stash), which I believe you're running.
>From the credentials code in Git (which I could be mis-reading; I'm
sure others on the list will correct me if I'm wrong), it appears the
erase is done after a cached credential is rej
On Wed, Apr 13, 2016 at 8:42 PM, Junio C Hamano wrote:
>>> Having said that, doesn't this need to be further adjusted for
>>> 95c38fb0 (branch: fix shortening of non-remote symrefs, 2016-04-03)?
>>>
>>> http://thread.gmane.org/gmane.comp.version-control.git/290622/focus=290624
>>>
>>
>> That was o
Good afternoon,
My company setup wincred for management of our git/stash user credentials for
our automated build scripts. It works great for days, sometimes a couple weeks.
Then one day build haven't run and we discover the scripts are randomly found
at a user prompt awaiting stash user creden
On Wed, 2016-04-13 at 20:43 +0700, Duy Nguyen wrote:
> On Wed, Apr 13, 2016 at 7:32 AM, David Turner <
> dtur...@twopensource.com> wrote:
> > +NOTES
> > +-
> > +
> > +$GIT_DIR/index-helper.path is a symlink
>
> In multiple worktree context, this file will be per-worktree. So we
> have one daem
On Wed, Apr 13, 2016 at 12:54:16AM -0400, Eric Sunshine wrote:
> > -# label is-bare is-inside-git is-inside-work prefix git-dir
> > absolute-git-dir
> > +test_expect_success '.git/: is-inside-git-dir' '
> > + (cd .git && test true = "$(git rev-parse --is-inside-git-dir)")
>
> Simpler:
>
>
On Wed, Apr 13, 2016 at 2:19 PM, David Holmer wrote:
> I agree that this switches the issue around and that a remote with a
> '/' in the name would be miss colored in the same way a branch with a
> '/' in the name is miss colored now. However, I would guess that
> branches with '/' are MUCH MUCH m
I agree that this switches the issue around and that a remote with a
'/' in the name would be miss colored in the same way a branch with a
'/' in the name is miss colored now. However, I would guess that
branches with '/' are MUCH MUCH more common than remotes with '/', so
like you say "this is a b
On Wed, Apr 13, 2016 at 10:39 AM, Junio C Hamano wrote:
> here, create a "GitHub-Travis CI hints" section just before "MUA
> specific hints" section,
Somebody (I think it was you, Lars?) at GitMerge suggested to break
up the SubmittingPatches document into more than one, i.e.
the MUA hints and t
On Wed, Apr 13, 2016 at 1:43 PM, Pranit Bauva wrote:
> On Wed, Apr 13, 2016 at 11:03 PM, Eric Sunshine
> wrote:
>> On Wed, Apr 13, 2016 at 4:39 AM, Pranit Bauva wrote:
>>> On Wed, Apr 13, 2016 at 11:26 AM, Eric Sunshine
>>> wrote:
On Tue, Apr 12, 2016 at 7:02 PM, Pranit Bauva
wrot
Lars Schneider writes:
> I am not sure what you mean by "fail to hit 'pu'". Maybe we talk at
> cross purposes. Here is what I think you do, please correct me:
>
> 1.) You pick the topics from the mailing list and create feature
> branches for each one of them. E.g. one of my recent topics
>
larsxschnei...@gmail.com writes:
> From: Lars Schneider
>
> Signed-off-by: Lars Schneider
> ---
> Documentation/SubmittingPatches | 39 ---
> 1 file changed, 36 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/SubmittingPatches b/Documentation/Sub
On Wed, Apr 13, 2016 at 5:15 AM, Pranit Bauva wrote:
> On Wed, Apr 13, 2016 at 11:44 AM, Eric Sunshine
> wrote:
>> On Tue, Apr 12, 2016 at 7:02 PM, Pranit Bauva wrote:
>>> +test_expect_success 'status does not verbose without --verbose' '
>>> + git status >actual &&
>>> + ! grep "^d
On Wed, Apr 13, 2016 at 11:03 PM, Eric Sunshine wrote:
> On Wed, Apr 13, 2016 at 4:39 AM, Pranit Bauva wrote:
>> On Wed, Apr 13, 2016 at 11:26 AM, Eric Sunshine
>> wrote:
>>> On Tue, Apr 12, 2016 at 7:02 PM, Pranit Bauva
>>> wrote:
+test_expect_success 'OPT_COUNTUP() resets to 0 with --n
On Wed, Apr 13, 2016 at 10:29:57AM -0700, Stefan Beller wrote:
>
> At Git Merge Greg said (paraphrasing here):
>
> We waste developers time, because we have plenty of it. Maintainers time
> however is precious because maintainers are the bottleneck and a scare
> resource to come by.
s/scar
On Wed, Apr 13, 2016 at 4:39 AM, Pranit Bauva wrote:
> On Wed, Apr 13, 2016 at 11:26 AM, Eric Sunshine
> wrote:
>> On Tue, Apr 12, 2016 at 7:02 PM, Pranit Bauva wrote:
>>> +test_expect_success 'OPT_COUNTUP() resets to 0 with --no- flag' '
>>> + test-parse-options --no-verbose >output 2>ou
On Wed, Apr 13, 2016 at 10:09 AM, Lars Schneider
wrote:
>
>> On 13 Apr 2016, at 18:27, Junio C Hamano wrote:
>>
>> Lars Schneider writes:
>>
>>> @Junio:
>>> If you setup Travis CI for your https://github.com/gitster/git fork
>>> then Travis CI would build all your topic branches and you (and
>>>
On Wed, Apr 13, 2016 at 4:59 AM, Pranit Bauva wrote:
> On Wed, Apr 13, 2016 at 10:56 AM, Eric Sunshine
> wrote:
>> On Tue, Apr 12, 2016 at 7:02 PM, Pranit Bauva wrote:
>>> +test_expect_success '--no-quiet sets quiet to 0' '
>>> + test-parse-options --no-quiet >output 2>output.err &&
>>
>>
On Wed, 2016-04-13 at 18:00 +0100, Ramsay Jones wrote:
>
> On 13/04/16 01:32, David Turner wrote:
>
> [snip]
>
> > diff --git a/git-compat-util.h b/git-compat-util.h
> > index c07e0c1..8b878fe 100644
> > --- a/git-compat-util.h
> > +++ b/git-compat-util.h
> > @@ -513,6 +513,7 @@ static inline in
> On 13 Apr 2016, at 18:27, Junio C Hamano wrote:
>
> Lars Schneider writes:
>
>> @Junio:
>> If you setup Travis CI for your https://github.com/gitster/git fork
>> then Travis CI would build all your topic branches and you (and
>> everyone who is interested) could check
>> https://travis-ci.
On 13/04/16 01:32, David Turner wrote:
[snip]
> diff --git a/git-compat-util.h b/git-compat-util.h
> index c07e0c1..8b878fe 100644
> --- a/git-compat-util.h
> +++ b/git-compat-util.h
> @@ -513,6 +513,7 @@ static inline int ends_with(const char *str, const char
> *suffix)
> #define PROT_READ 1
Dear list:
Just encountered the --merge option for git log.
In the man page, it has the following explanation:
- After a failed merge, show refs that touch files having a conflict
and don't exist on all heads to merge.
I tried this option and get below results:
1. For a failed merge (with confl
Lars Schneider writes:
> @Junio:
> If you setup Travis CI for your https://github.com/gitster/git fork
> then Travis CI would build all your topic branches and you (and
> everyone who is interested) could check
> https://travis-ci.org/gitster/git/branches to see which branches
> will break pu
Matthieu Moy writes:
True, presumably the Travis integration already solves that part, so
I suspect it is just the matter of setting up:
- a fork of git.git and have Travis monitor any and all new
branches;
- a bot that scans the list traffic, applies each s
> On 13 Apr 2016, at 14:30, Matthieu Moy wrote:
>
> Lars Schneider writes:
>
>>> On 13 Apr 2016, at 07:43, Matthieu Moy wrote:
>>>
>>> Junio C Hamano writes:
>>>
Matthieu Moy writes:
True, presumably the Travis integration already solves that part, so
I suspect it is
On Tue, Apr 12, 2016 at 12:47:23PM -0700, Junio C Hamano wrote:
>Xiaolong Ye writes:
>
>> +static int config_base_commit;
>
>This variable is used as a simple boolean whose name is overly broad
>(if it were named "config_base_auto" this complaint would not
>apply). If you envision possible future
On Tue, Apr 12, 2016 at 12:08:33PM -0700, Junio C Hamano wrote:
>Xiaolong Ye writes:
>
>> Maintainers or third party testers may want to know the exact base tree
>> the patch series applies to. Teach git format-patch a '--base' option
>> to record the base tree info and append it at the end of the
On Sun, Apr 10, 2016 at 3:19 PM, Stephan Beyer wrote:
> The idea is to reverse the DAG and perform a traversal
> starting on all sources of the reversed DAG.
>
> We walk from the bottom commits, incrementing the weight while
> walking on a part of the graph that is single strand of pearls,
> or do
> > I don't know how 0 bot solves this, but the obvious issue with this
> > approach is to allow dealing with someone sending a patch like
> >
> > +++ Makefile
> > --- Makefile
> > +all:
> > + rm -fr $(HOME); sudo rm -fr /
> >
> > to the list. One thing that Travis gives us for free is isolation:
On Wed, Apr 13, 2016 at 7:32 AM, David Turner wrote:
> +NOTES
> +-
> +
> +$GIT_DIR/index-helper.path is a symlink
In multiple worktree context, this file will be per-worktree. So we
have one daemon per worktree. I think that's fine.
> to a directory in $TMPDIR
> +containing a Unix domain soc
On Wed 13-04-16 16:51:37, Vineet Gupta wrote:
> Trimming CC list + CC git folks
>
> Hi Michal,
>
> On Monday 11 April 2016 04:37 PM, Michal Hocko wrote:
> > Hi,
> > this is the second version of the patchset previously sent [1]
>
> I have a git question if you didn't mind w.r.t. this series. May
On Sun, Apr 10, 2016 at 3:19 PM, Stephan Beyer wrote:
>
> @@ -70,7 +70,7 @@ static inline int distance_direction(struct commit *commit)
> return 0;
> }
>
> -static int count_distance(struct commit *elem)
> +static int compute_weight(struct commit *elem)
> {
> int nr = 0;
>
On Sun, Apr 10, 2016 at 3:19 PM, Stephan Beyer wrote:
> The total number of commits in a bisect process is a property of
> the bisect process. Making this property global helps to make the code
> clearer.
>
> Signed-off-by: Stephan Beyer
> ---
> bisect.c | 74
> +
This keeps top dir a bit less crowded. And because these programs are
for testing purposes, it makes sense that they stay somewhere in t/
Signed-off-by: Nguyễn Thái Ngọc Duy
---
This patch will break any patches that add new test programs.
Luckily, none in 'next' or 'pu' does that. I know lmdb
This function is later used by "worktree move" and "worktree remove"
to ensure that we have a good connection between the repository and
the worktree.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
worktree.c | 63 ++
worktree.h | 5 +
2
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-worktree.txt | 12 --
builtin/worktree.c | 41 ++
contrib/completion/git-completion.bash | 5 -
t/t2028-worktree-move.sh (new +x) | 34 ++
Signed-off-by: Nguyễn Thái Ngọc Duy
---
worktree.c | 14 +++---
worktree.h | 5 +
2 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/worktree.c b/worktree.c
index 4c38414..b4e4b57 100644
--- a/worktree.c
+++ b/worktree.c
@@ -4,14 +4,22 @@
#include "worktree.h"
#include
Similar to "mv a b/", which is actually "mv a b/a", we extract basename
of source worktree and create a directory of the same name at
destination if dst path is a directory.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/worktree.c | 19 ++-
1 file changed, 18 insertions(+), 1 d
Signed-off-by: Nguyễn Thái Ngọc Duy
---
worktree.c | 25 +
worktree.h | 6 ++
2 files changed, 31 insertions(+)
diff --git a/worktree.c b/worktree.c
index 28195b1..e526e25 100644
--- a/worktree.c
+++ b/worktree.c
@@ -282,6 +282,31 @@ int validate_worktree(const struc
Signed-off-by: Nguyễn Thái Ngọc Duy
---
worktree.c | 18 ++
worktree.h | 6 ++
2 files changed, 24 insertions(+)
diff --git a/worktree.c b/worktree.c
index e526e25..37eec09 100644
--- a/worktree.c
+++ b/worktree.c
@@ -219,6 +219,24 @@ int is_main_worktree(const struct worktr
Signed-off-by: Nguyễn Thái Ngọc Duy
---
worktree.c | 16
worktree.h | 6 ++
2 files changed, 22 insertions(+)
diff --git a/worktree.c b/worktree.c
index b4e4b57..e444ad1 100644
--- a/worktree.c
+++ b/worktree.c
@@ -198,6 +198,22 @@ const char *get_worktree_git_dir(const str
Signed-off-by: Nguyễn Thái Ngọc Duy
---
worktree.c | 5 +
worktree.h | 5 +
2 files changed, 10 insertions(+)
diff --git a/worktree.c b/worktree.c
index e444ad1..e878f49 100644
--- a/worktree.c
+++ b/worktree.c
@@ -214,6 +214,11 @@ struct worktree *find_worktree_by_path(struct worktree
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-worktree.txt | 5 +
builtin/worktree.c | 31 +++
contrib/completion/git-completion.bash | 2 +-
t/t2028-worktree-move.sh | 14 ++
4 files changed, 51 i
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-worktree.txt | 22 +
builtin/worktree.c | 81 ++
contrib/completion/git-completion.bash | 5 ++-
t/t2028-worktree-move.sh | 26 +++
4 files changed,
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/worktree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 7ff66fa..e041d7f 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -261,7 +261,7 @@ static int add_worktree(const
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/worktree.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/builtin/worktree.c b/builtin/worktree.c
index e041d7f..a9e91ab 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -330,7 +330,7 @@ static int add(int ac, cons
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-worktree.txt | 6 +++-
builtin/worktree.c | 60 ++
contrib/completion/git-completion.bash | 2 +-
t/t2028-worktree-move.sh | 29
4 files changed,
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/worktree.c | 2 +-
worktree.c | 3 ++-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 575f899..7ff66fa 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -94,7 +94,7 @@ s
Signed-off-by: Nguyễn Thái Ngọc Duy
---
contrib/completion/git-completion.bash | 23 +++
1 file changed, 23 insertions(+)
diff --git a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index e3918c8..f66db2d 100644
--- a/contrib/completion/git-c
Signed-off-by: Nguyễn Thái Ngọc Duy
---
copy.c | 50 +-
1 file changed, 29 insertions(+), 21 deletions(-)
diff --git a/copy.c b/copy.c
index cdb38d5..00f8349 100644
--- a/copy.c
+++ b/copy.c
@@ -111,8 +111,10 @@ int FAST_FUNC copy_file(const char *
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-worktree.txt | 10 +-
builtin/worktree.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index 62c76c1..1c9d7c1 100644
--- a/Docume
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 3 +++
path.c | 29 +
2 files changed, 32 insertions(+)
diff --git a/cache.h b/cache.h
index 213a8d3..c81f654 100644
--- a/cache.h
+++ b/cache.h
@@ -767,11 +767,14 @@ extern int check_repository_format(void);
*/
e
This finally enables busybox's copy_file() code under a new name
(because "copy_file" is already taken in Git code base). Because this
comes from busybox, POSIXy (or even Linuxy) behavior is expected. More
changes may be needed for Windows support.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h
Signed-off-by: Nguyễn Thái Ngọc Duy
---
copy.c | 85 --
1 file changed, 31 insertions(+), 54 deletions(-)
diff --git a/copy.c b/copy.c
index d24a8ae..cdb38d5 100644
--- a/copy.c
+++ b/copy.c
@@ -82,23 +82,16 @@ int FAST_FUNC copy_fi
We can reconstruct git_dir from id quite easily. It's a bit hackier to
do the reverse.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
worktree.c | 29 -
worktree.h | 7 ++-
2 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/worktree.c b/worktree.c
index dd
- selinux preservation code
- make-link code
- delete link dereference code
- non-recursive copy code
- stat no preservation code
- verbose printing code
Signed-off-by: Nguyễn Thái Ngọc Duy
---
copy.c | 101 +
1 file changed,
Signed-off-by: Nguyễn Thái Ngọc Duy
---
git-compat-util.h | 1 +
usage.c | 10 ++
2 files changed, 11 insertions(+)
diff --git a/git-compat-util.h b/git-compat-util.h
index 4743954..e8e7765 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -412,6 +412,7 @@ extern NORET
This is busybox's unmodified copy_file() in libbb/copy_file.c from the
GPL2+ commit f2c043acfcf9dad9fd3d65821b81f89986bbe54e (busybox: fix
uninitialized memory when displaying IPv6 addresses - 2016-01-18)
Signed-off-by: Nguyễn Thái Ngọc Duy
---
copy.c | 331 ++
This is basically a resend from last time, which happened during rc
time. It adds 4 more commands, basically cleaning up the "TODO" list
in git-worktree.txt.
So far I've only actually used move and remove (and maybe unlock once
because worktree-add failed on me and I had to unlock it manually).
An
Signed-off-by: Nguyễn Thái Ngọc Duy
---
usage.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/usage.c b/usage.c
index 82ff131..0dba0c5 100644
--- a/usage.c
+++ b/usage.c
@@ -109,19 +109,12 @@ void NORETURN die(const char *err, ...)
va_end(
Signed-off-by: Nguyễn Thái Ngọc Duy
---
upload-pack.c | 41 ++---
1 file changed, 26 insertions(+), 15 deletions(-)
diff --git a/upload-pack.c b/upload-pack.c
index 95a0bfb..9e4a4fa 100644
--- a/upload-pack.c
+++ b/upload-pack.c
@@ -452,24 +452,24 @@ static in
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 b7c467a..a410409 100644
--- a/Documentat
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, bu
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 a410409..5049663 100644
--- a/Documen
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/fetch-options.txt | 4
Documentation/git-fetch-pack.txt| 4
Documentation/gitremote-helpers.txt | 3 +++
builtin/fetch-pack.c| 4
builtin/fetch.c | 29 +++--
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.
The way we find fi
Signed-off-by: Nguyễn Thái Ngọc Duy
---
t/t5500-fetch-pack.sh | 24
t/t5539-fetch-http-shallow.sh | 26 ++
2 files changed, 50 insertions(+)
diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh
index e5f83bf..26f050d 100755
--- a/t/t
Signed-off-by: Nguyễn Thái Ngọc Duy
---
t/t5500-fetch-pack.sh | 22 ++
t/t5539-fetch-http-shallow.sh | 22 ++
2 files changed, 44 insertions(+)
diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh
index 26f050d..a3fe5ca 100755
--- a/t/t5500-f
1 - 100 of 136 matches
Mail list logo