On Tue, Apr 16, 2019 at 02:59:12PM +0100, Phillip Wood wrote:
> Hi Denton
>
> It's good to see rebase fast-forwarding properly when it should
>
> On 15/04/2019 23:29, Denton Liu wrote:
> > Before, when we had the following graph,
> >
> > A---B---C (master)
> > \
> > D (side)
Taylor Blau writes:
>> That's this one
>>
>> Date: Tue, 9 Apr 2019 19:13:06 -0700 (1 week, 3 hours, 23 minutes ago)
>> Subject: [PATCH v2 0/7] harden unexpected object types checks
>>
>> which I think is what has been queued and what is listed in the
>> message you are responding to.
>
>
On Wed, Apr 17, 2019 at 02:38:34PM +0900, Junio C Hamano wrote:
> Taylor Blau writes:
>
> > Hi Junio,
> >
> > On Tue, Apr 16, 2019 at 10:19:45PM +0900, Junio C Hamano wrote:
> >> * tb/unexpected (2019-04-10) 7 commits
> >> ...
> >> Code tightening against a "wrong" object appearing where an objec
Jeff King writes:
>> I do not personally think, as the design of v2 stands, a standalone
>> "serve" server that "can serve anything as long as it goes over
>> protocol v2" makes much sense, but perhaps those who have been doing
>> the v2 work may have different ideas, in which case let's hear wha
Taylor Blau writes:
> Hi Junio,
>
> On Tue, Apr 16, 2019 at 10:19:45PM +0900, Junio C Hamano wrote:
>> * tb/unexpected (2019-04-10) 7 commits
>> ...
>> Code tightening against a "wrong" object appearing where an object
>> of a different type is expected, instead of blindly assuming that
>> the
"Emily Shaffer via GitGitGadget" writes:
> Subject: Re: [PATCH v2 1/1] documentation: add lab for first contribution
> From: Emily Shaffer
>
> This code lab covers how to add a new command to Git and, in the
> process, everything from cloning git/git to getting reviewed on the mail
"lab"? I th
A common workflow is to make a commit on a local branch, push the branch
to the remote, check out the remote branch on a second computer, amend
the commit on the second computer, force-push back to the remote branch,
and finally submit a pull request. However, if the user switches back to
the first
On Mon, Apr 15, 2019 at 11:03:02PM +0900, Junio C Hamano wrote:
> "Johannes Schindelin via GitGitGadget"
> writes:
>
> > From: Johannes Schindelin
> >
> > The `git serve` built-in was introduced in ed10cb952d31 (serve:
> > introduce git-serve, 2018-03-15) as a backend to serve Git protocol v2,
Jonathan Tan writes:
>> * jt/clone-server-option (2019-04-15) 4 commits
>> - SQUASH???
>> - clone: send server options when using protocol v2
>> - SQUASH???
>> - transport: die if server options are unsupported
>>
>> "git clone" learned a new --server-option option when talking over
>> the
Ben Peart writes:
>> * bp/post-index-change-hook (2019-02-15) 1 commit
>>(merged to 'next' on 2019-03-11 at cb96d1d7c4)
>> + read-cache: add post-index-change hook
>>
>> Originally merged to 'next' on 2019-02-23
>>
>> A new hook "post-index-change" is called when the on-disk index
>>
Hi Junio,
On Tue, Apr 16, 2019 at 10:19:45PM +0900, Junio C Hamano wrote:
> * tb/unexpected (2019-04-10) 7 commits
> - rev-list: detect broken root trees
> - rev-list: let traversal die when --missing is not in use
> - get_commit_tree(): return NULL for broken tree
> - list-objects.c: handle u
[please don't top post on this list]
On 04/16, Christian Vetter wrote:
> Thank you, Thomas!
>
> Now that you explained this, I do understand the behaviour, and agree that it
> is correct.
> While this seems to be clear with a deeper understanding of git than I have,
> it might be a good idea to
On Tue, Apr 16, 2019 at 02:39:45PM +0200, Damien Robert wrote:
> > Or perhaps it argues for just giving access to the more generic stat_*
> > function, and letting callers pass in a flag for push vs upstream (and
> > either leaving stat_tracking_info() as a wrapper, or just updating its
> > few ca
On Tue, Apr 16, 2019 at 1:26 PM Emily Shaffer via GitGitGadget
wrote:
>
> RFC. I am still working on adding a section on handling refs and objects.
Sorry for the spam; above line was stale in GitGitGadget. The relevant
section has been added
just before the help page. I think the change is comple
From: Emily Shaffer
This code lab covers how to add a new command to Git and, in the
process, everything from cloning git/git to getting reviewed on the mail
list. It's meant for new contributors to go through interactively,
learning the techniques generally used by the git/git development
commun
RFC. I am still working on adding a section on handling refs and objects.
A tutorial for beginners explaining how to commit to git/git from clone to
push. This tutorial attempts to explain the GitGitGadget workflow; with the
review I'm hoping to understand whether it's worth the effort to detail h
Thank you, Thomas!
Now that you explained this, I do understand the behaviour, and agree that it
is correct.
While this seems to be clear with a deeper understanding of git than I have,
it might be a good idea to specifically point this out in the docs in the
context of `--keep-index`.
That woul
On 04/16, Christian Vetter wrote:
> Steps to reproduce
> + mkdir git-stash-test
> + cd git-stash-test
> + git init
> + touch file
> + git add file
> + git commit -m init
> + git rm file
> + git stash push --keep-index
>
>
> Result:
> `git status` gives this output:
> > On branch master
> > Cha
Steps to reproduce
+ mkdir git-stash-test
+ cd git-stash-test
+ git init
+ touch file
+ git add file
+ git commit -m init
+ git rm file
+ git stash push --keep-index
Result:
`git status` gives this output:
> On branch master
> Changes to be committed:
> (use "git reset HEAD ..." to unstage)
> * jt/clone-server-option (2019-04-15) 4 commits
> - SQUASH???
> - clone: send server options when using protocol v2
> - SQUASH???
> - transport: die if server options are unsupported
>
> "git clone" learned a new --server-option option when talking over
> the protocol version 2.
>
> Getti
> I think there's a slight misunderstanding. In the patchset that
> Michael and I are working on, the user specifies whole commits
> explicitly. This is usually done with a file, but can also be done
> from the command line for "one-off" ignored commits. That sounds like
> what you want.
>
> Th
On 4/16/2019 9:19 AM, Junio C Hamano wrote:
> * ds/midx-expire-repack (2019-01-27) 10 commits
> - midx: add test that 'expire' respects .keep files
> - multi-pack-index: test expire while adding packs
> - midx: implement midx_repack()
> - multi-pack-index: prepare 'repack' subcommand
> - mult
Hiya!
Whenever I do a particularly long rebase on a branch, sorting out
conflicts from upstream, I find that it's often useful to have the
additional context that you get during an interactive rebase, such as
recent commands run, commands planned to run, and so on, to get a better
idea of where I'
On 4/16/2019 9:19 AM, Junio C Hamano wrote:
Here are the topics that have been cooking. Commits prefixed with
'-' are only in 'pu' (proposed updates) while commits prefixed with
'+' are in 'next'. The ones marked with '.' do not appear in any of
the integration branches, but I am still holdi
Ævar Arnfjörð Bjarmason writes:
> On Tue, Apr 16 2019, Junio C Hamano wrote:
>
>
>> * jc/gettext-test-fix (2019-04-15) 1 commit
>> - gettext tests: export the restored GIT_TEST_GETTEXT_POISON
>>
>> The GETTEXT_POISON test option has been quite broken ever since it
>> was made runtime-tunable,
Hi -
On 4/15/19 5:56 PM, Christian González wrote:
Am 15.04.19 um 23:15 schrieb Thomas Gummerer:
This sounds roughly like what Barret Rhoden (added to Cc) has been
working on. I haven't followed that patch series in detail, but you
can have a look at it atthe latest iteration at
https://public
On Tue, Apr 16 2019, Junio C Hamano wrote:
> * jc/gettext-test-fix (2019-04-15) 1 commit
> - gettext tests: export the restored GIT_TEST_GETTEXT_POISON
>
> The GETTEXT_POISON test option has been quite broken ever since it
> was made runtime-tunable, which has been fixed.
>
> Will merge to
On 4/16/2019 4:52 AM, Duy Nguyen wrote:
> On Mon, Apr 15, 2019 at 9:06 PM Derrick Stolee wrote:
>>
>> On 1/26/2019 7:35 PM, Nguyễn Thái Ngọc Duy wrote:
>>> @@ -238,7 +249,10 @@ static enum parse_opt_result parse_short_opt(struct
>>> parse_opt_ctx_t *p,
>>> len++;
>>>
On Tue, Apr 16, 2019 at 2:42 PM Damien Robert
wrote:
> You are welcome. What's the standard way to acknowledge your help in
> the Foo-By: trailers? I did not put a Reviewed-By: because you reviewed the
> previous patch, not the current one :)
We often use:
Helped-by: Jeff King
Hi Denton
It's good to see rebase fast-forwarding properly when it should
On 15/04/2019 23:29, Denton Liu wrote:
Before, when we had the following graph,
A---B---C (master)
\
D (side)
running 'git rebase --onto master... master side' would result in D
being al
Here are the topics that have been cooking. Commits prefixed with
'-' are only in 'pu' (proposed updates) while commits prefixed with
'+' are in 'next'. The ones marked with '.' do not appear in any of
the integration branches, but I am still holding onto them.
Yet another batch of ~30 topics ha
>From Jeff King, Mon 15 Apr 2019 at 18:01:08 (-0400) :
> > + if ((atom->u.remote_ref.push ?
> > +stat_push_info(branch, &num_ours, &num_theirs,
> > + NULL, AHEAD_BEHIND_FULL) :
> > +stat_tracking_info(branch, &num_ours, &num_th
From: Phillip Wood
I've updated the first patch as per Junio's suggestions and added
tests for revert as well as cherry-pick. I've also changed the second
patch to avoid printing the oid of the origin of the commit that's
just been created and added tests for revert as well as
cherry-pick. In the
From: Phillip Wood
When cherry-picking or reverting a sequence of commits and if the final
pick/revert has conflicts and the user uses `git commit` to commit the
conflict resolution and does not run `git cherry-pick --continue` then
the sequencer state is left behind. This can cause problems late
From: Phillip Wood
If the user commits a conflict resolution using `git commit` in the
middle of a sequence of cherry-picks/reverts then `git status` missed
the fact that a cherry-pick/revert is still in progress.
Signed-off-by: Phillip Wood
---
sequencer.c| 35
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 3 ++-
sha1-name.c | 18 +++---
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/cache.h b/cache.h
index 871a167bf8..9a600a8b50 100644
--- a/cache.h
+++ b/cache.h
@@ -1386,6 +1386,7 @@ int repo_get_oid_committish(st
Since 76e9bdc437 (submodule: support reading .gitmodules when it's not
in the working tree - 2018-10-25), every time you do
git grep --recurse-submodules
you are likely to see one warning line per submodule (unless all those
submodules also have submodules). On a superproject with plenty of
s
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 4 +++-
setup.c | 7 ---
sha1-name.c | 6 --
3 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/cache.h b/cache.h
index f6e87194d0..3718b3db8a 100644
--- a/cache.h
+++ b/cache.h
@@ -1387,7 +1387,9 @@ extern int get_oid
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 18 --
sha1-name.c | 35 ---
2 files changed, 32 insertions(+), 21 deletions(-)
diff --git a/cache.h b/cache.h
index 3718b3db8a..871a167bf8 100644
--- a/cache.h
+++ b/cache.h
@@ -1381,12 +1381,1
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 3 ++-
sha1-name.c | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/cache.h b/cache.h
index 2149dc4f56..f6e87194d0 100644
--- a/cache.h
+++ b/cache.h
@@ -1380,7 +1380,8 @@ enum get_oid_result {
*/
"remove" is not entirely correct. But at least the function is aware
that if the given repo is not the_repository, then $CWD and
is_inside_work_tree() means nothing.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sh
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 11 ++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/sha1-name.c b/sha1-name.c
index 6b53ea2eeb..64a50d1291 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -12,6 +12,7 @@
#include "packfile.h"
#include "object-store.h"
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 8 +---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index fb80306f1a..1cda854f02 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -1097,7 +1097,9 @@ static int peel_onion(const char *name, int len,
Signed-off-by: Nguyễn Thái Ngọc Duy
---
dir.c | 8
dir.h | 4 +++-
sha1-name.c | 7 ---
3 files changed, 15 insertions(+), 4 deletions(-)
diff --git a/dir.c b/dir.c
index b2cabadf25..e6d97343f4 100644
--- a/dir.c
+++ b/dir.c
@@ -2315,6 +2315,14 @@ int file_exists(const c
There is a cyclic dependency between one of these functions so they
cannot be converted one by one, so all related functions are converted
at once.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 7 +--
sha1-name.c | 59 -
2 files ch
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index 5741a9f821..d9050776dd 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -1189,15 +1189,21 @@ static enum get_oid_result get_oid
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index 49c62d5254..fb80306f1a 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -15,7 +15,7 @@
#include "midx.h"
#include "commit-reach.h"
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 17 ++---
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index 2643b75b54..af8bf5b351 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -771,7 +771,7 @@ static inline int push_mark(const char *
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index af8bf5b351..7d9512ac44 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -1412,9 +1412,9 @@ static int reinterpret(const char *name, in
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 25 -
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index 1cda854f02..d4c135aea8 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -773,8 +773,8 @@ static inline int push_mark(con
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 17 -
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index 7d9512ac44..49c62d5254 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -1390,7 +1390,8 @@ static int interpret_empty_at(const cha
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 6 --
sha1-name.c | 15 +--
2 files changed, 13 insertions(+), 8 deletions(-)
diff --git a/cache.h b/cache.h
index fcb24b5781..4f8ebb0a67 100644
--- a/cache.h
+++ b/cache.h
@@ -1045,8 +1045,10 @@ extern void check_repository_
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 95 +
1 file changed, 59 insertions(+), 36 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index 9b57787b76..a75992eb54 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -17,13 +17,14 @@
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index 7558ce51a3..b9381aaba6 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -514,6 +514,7 @@ struct min_abbrev_data {
unsigned int init_le
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 17 ++---
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index cdcf84b826..2643b75b54 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -436,7 +436,8 @@ static void sort_ambiguous_oid_array(str
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 3 ++-
sha1-name.c | 5 +++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/cache.h b/cache.h
index 4f8ebb0a67..0cb95c0d4f 100644
--- a/cache.h
+++ b/cache.h
@@ -1392,7 +1392,8 @@ extern enum get_oid_result get_oid_with_contex
"maybe" pointer in 'struct commit' is tricky because it can be lazily
initialized to take advantage of commit-graph if available. This makes
it not safe to access directly.
This leads to a rule in commit.cocci to rewrite 'x->maybe_tree' to
'get_commit_tree(x)'. But that rule alone could lead to in
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 8 ++--
refs.c | 9 +
sha1-name.c | 8 ++--
3 files changed, 17 insertions(+), 8 deletions(-)
diff --git a/cache.h b/cache.h
index ac92421f3a..fcb24b5781 100644
--- a/cache.h
+++ b/cache.h
@@ -1468,8 +1468,12 @@ extern in
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 15 ---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index 15a1107998..7558ce51a3 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -383,10 +383,11 @@ static int collect_ambiguous(const struc
Remove the implicit dependency on the_repository in this function.
It will be used in sha1-name.c functions when they are updated to take
any 'struct repository'. get_commit_tree() remains as a compat wrapper,
to be slowly replaced later.
Any access to "maybe_tree" field directly will result in _b
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/show-branch.c | 6 --
refs.c| 7 ---
refs.h| 3 ++-
sha1-name.c | 3 ++-
4 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/builtin/show-branch.c b/builtin/show-branch.c
index 934e514944
Signed-off-by: Nguyễn Thái Ngọc Duy
---
refs.c | 11 +--
refs.h | 2 ++
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/refs.c b/refs.c
index b869f32d8b..3dde824aab 100644
--- a/refs.c
+++ b/refs.c
@@ -1169,7 +1169,8 @@ int update_ref(const char *msg, const char *refname,
Signed-off-by: Nguyễn Thái Ngọc Duy
---
refs.c| 10 ++
refs.h| 2 +-
upload-pack.c | 2 +-
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/refs.c b/refs.c
index 44df049796..1f5864aa36 100644
--- a/refs.c
+++ b/refs.c
@@ -558,12 +558,13 @@ static char *subs
Signed-off-by: Nguyễn Thái Ngọc Duy
---
refs.c | 21 +++--
refs.h | 1 +
2 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/refs.c b/refs.c
index bd0fec5776..edea001446 100644
--- a/refs.c
+++ b/refs.c
@@ -603,9 +603,11 @@ int expand_ref(struct repository *repo, cons
Signed-off-by: Nguyễn Thái Ngọc Duy
---
refs.c | 12 +---
refs.h | 1 +
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/refs.c b/refs.c
index 1f5864aa36..bd0fec5776 100644
--- a/refs.c
+++ b/refs.c
@@ -555,14 +555,20 @@ static char *substitute_branch_name(struct repositor
Signed-off-by: Nguyễn Thái Ngọc Duy
---
packfile.c | 14 +++---
packfile.h | 3 ++-
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/packfile.c b/packfile.c
index 16bcb75262..2ad4fab2f8 100644
--- a/packfile.c
+++ b/packfile.c
@@ -893,25 +893,25 @@ static void prepare_packe
Signed-off-by: Nguyễn Thái Ngọc Duy
---
refs.c | 7 ++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/refs.c b/refs.c
index 142888a40a..b869f32d8b 100644
--- a/refs.c
+++ b/refs.c
@@ -241,9 +241,14 @@ int read_ref(const char *refname, struct object_id *oid)
return read_
From: SZEDER Gábor
Use the macro FREE_AND_NULL to release memory allocated for
'head_name' and clear its pointer.
Patch generated with 'contrib/coccinelle/free.cocci' and Coccinelle
v1.0.7 (previous Coccinelle versions don't notice this).
Signed-off-by: SZEDER Gábor
Signed-off-by: Nguyễn Thái
From: SZEDER Gábor
Use oideq() instead of !oidcmp(), as it is more idiomatic, and might
give the compiler more opportunities to optimize.
Patch generated with 'contrib/coccinelle/free.cocci' and Coccinelle
v1.0.7 (previous Coccinelle versions don't notice this).
Signed-off-by: SZEDER Gábor
Sig
v4 is all about updating commit.c and commit.cocci 11/33. I think I have
incorporated all changes from v3 discussion. The changes are separated
to a new patch 11/34 though, the old 11/33 is now 12/34.
Diff
diff --git a/commit-graph.c b/commit-graph.c
index 47e9be0a3a..155a270457 100644
--- a/comm
On Mon, Apr 15, 2019 at 9:06 PM Derrick Stolee wrote:
>
> On 1/26/2019 7:35 PM, Nguyễn Thái Ngọc Duy wrote:
> > @@ -238,7 +249,10 @@ static enum parse_opt_result parse_short_opt(struct
> > parse_opt_ctx_t *p,
> > len++;
> > arg = xmemdupz(p->opt, len);
> >
On Tue, Apr 16, 2019 at 1:31 PM Paul Morelle wrote:
>> The problem here is the option parser of this command would try to
>> parse all options, so it considers both --quiet the same thing and are
>> to tell "submodule--foreach" to be quiet, the second --quiet is not
>> part of the "git pull" comma
72 matches
Mail list logo