after every commit. This makes all
commits unique. Of course there are still identical blobs in different
repos, but because we often lookup commit first, then tree and blob,
unique commits are already quite safe.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
> And I can't quite understand how
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
archive.c | 4 +++-
blame.c| 4 ++--
builtin/rm.c | 2 +-
builtin/update-index.c | 2 +-
line-log.c | 7 ---
match-trees.c | 6 +++---
merge-recursive.c
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
cache.h | 4 ++--
match-trees.c | 12 +++-
merge-recursive.c | 4 ++--
t/helper/test-match-trees.c | 2 +-
4 files changed, 12 insertions(+), 10 deletions(-)
diff --git
There are a couple of places where 'struct repository' is already passed
around, but the_repository is still used. Use the right repo.
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
merge-recursive.c | 35 ---
sequencer.c
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
sha1-name.c | 10 +-
tree-walk.c | 12
tree-walk.h | 2 +-
3 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index e8fb215e5c..3c9fa10af8 100644
--- a/sha1-name.c
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/cat-file.c | 3 ++-
builtin/grep.c | 6 --
builtin/pack-objects.c | 3 ++-
cache.h| 3 ++-
fast-import.c | 9 ++---
sha1-file.c| 5 +++--
tree-walk.c| 7 ---
7 files changed
s in order to make
it work. And I can't quite understand how t7814 sometimes passed.
I'll revisit this after this series is done and will try to get rid of
add_to_alternates_memory() in git-grep.
Nguyễn Thái Ngọc Duy (6):
sha1-file.c: remove the_repo from read_object_with_reference()
While at there, clean up the_repo usage in builtin/merge-tree.c a tiny
bit.
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
builtin/merge-tree.c | 22 +-
builtin/rebase.c | 4 ++--
builtin/reset.c | 4 ++--
notes.c | 2
s/master@{literal}@{yesterday} or @{hash}^{tree}.
Perhaps I should allow these tags at the end too, so you can enforce a
variable like "$REV"@{literal} where $REV could be even HEAD~123
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/revisions.txt | 10
refs.c
Signed-off-by: Nguyễn Thái Ngọc Duy
---
t/t3008-ls-files-lazy-init-name-hash.sh | 8 +---
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/t/t3008-ls-files-lazy-init-name-hash.sh
b/t/t3008-ls-files-lazy-init-name-hash.sh
index 64f047332b..7f918c05f6 100755
--- a/t/t3008-ls-files
Signed-off-by: Nguyễn Thái Ngọc Duy
---
read-cache.c | 8
t/t3011-ls-files-json.sh | 13 ++
t/t3011/eoie (new) | 96
t/test-lib.sh| 4 ++
4 files changed, 121 insertions(+)
diff --git a/read-cache.c b/read-cache.c
The big part of UNTR extension is dumped at the end instead of dumping
as soon as we read it, because we actually "patch" some fields in
untracked_cache_dir with EWAH bitmaps at the end.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
dir.c
Signed-off-by: Nguyễn Thái Ngọc Duy
---
fsmonitor.c | 6 ++
t/t3011-ls-files-json.sh | 14 +-
t/t3011/fsmonitor (new) | 38 ++
3 files changed, 57 insertions(+), 1 deletion(-)
diff --git a/fsmonitor.c b/fsmonitor.c
index
Signed-off-by: Nguyễn Thái Ngọc Duy
---
read-cache.c | 2 +-
resolve-undo.c | 30 +-
resolve-undo.h | 4 ++-
t/t3011-ls-files-json.sh | 20
t/t3011/rerere (new) | 66
5 files changed, 119
rbose even on a small repository such as git.git.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-ls-files.txt| 5 +++
builtin/ls-files.c| 38 +---
cache.h | 2 +
json-writer.c | 22 ++
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache-tree.c | 36 +++-
cache-tree.h | 5 -
read-cache.c | 2 +-
t/t3011-ls-files-json.sh | 4 +++-
t/t3011/basic| 20 +++-
5 files changed, 58
Signed-off-by: Nguyễn Thái Ngọc Duy
---
read-cache.c | 43 ---
t/t3011/eoie | 13 -
2 files changed, 48 insertions(+), 8 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index 37491dd03d..c26edcc9d9 100644
--- a/read-cache.c
+++ b/read
Signed-off-by: Nguyễn Thái Ngọc Duy
---
read-cache.c | 49 +++--
1 file changed, 35 insertions(+), 14 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index db5147d088..4accd8bb08 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1694,8 +1694,26
Signed-off-by: Nguyễn Thái Ngọc Duy
---
json-writer.c | 14 ++
json-writer.h | 3 +++
split-index.c | 9 -
t/t3011-ls-files-json.sh | 14 ++
t/t3011/split-index (new) | 39 +++
5 files
"file_offset":
+},
+{
+ "id": 2,
+ "name": "three",
+ "mode": "100644",
+ "flags": 0,
+ "oid": ,
+ "stat": {
+"ctime_sec": ,
+"ctim
There are a couple of places where 'struct repository' is already passed
around, but the_repository is still used. Use the right repo.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
merge-recursive.c | 35 ---
sequencer.c | 4 ++--
sha1-name.c
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache.h | 4 ++--
match-trees.c | 12 +++-
merge-recursive.c | 4 ++--
t/helper/test-match-trees.c | 2 +-
4 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/cache.h b/cache.h
index
This is the continuation of nd/sha1-name-c-wo-the-repository. In that
series I sealed off one place in sha1-name.c that cannot walk trees
from arbitrary repositories. With tree-walk.c taking 'struct
repository *' directly, that check in there can now be removed.
Nguyễn Thái Ngọc Duy (
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/cat-file.c | 3 ++-
builtin/grep.c | 6 --
builtin/pack-objects.c | 3 ++-
cache.h| 3 ++-
fast-import.c | 9 ++---
sha1-file.c| 5 +++--
tree-walk.c| 7 ---
7 files changed
Signed-off-by: Nguyễn Thái Ngọc Duy
---
sha1-name.c | 10 +-
tree-walk.c | 12
tree-walk.h | 2 +-
3 files changed, 10 insertions(+), 14 deletions(-)
diff --git a/sha1-name.c b/sha1-name.c
index e8fb215e5c..3c9fa10af8 100644
--- a/sha1-name.c
+++ b/sha1-name.c
@@ -1890,16
While at there, clean up the_repo usage in builtin/merge-tree.c a tiny
bit.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/merge-tree.c | 22 +-
builtin/rebase.c | 4 ++--
builtin/reset.c | 4 ++--
notes.c | 2 +-
sequencer.c | 2 +-
tree
Signed-off-by: Nguyễn Thái Ngọc Duy
---
archive.c | 4 +++-
blame.c| 4 ++--
builtin/rm.c | 2 +-
builtin/update-index.c | 2 +-
line-log.c | 7 ---
match-trees.c | 6 +++---
merge-recursive.c | 8 +---
notes.c
o trying to be clever. But that's more
suitable for plumbing commands like update-index than rm, in my
opinion.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
This occurred to me while adding intent-to-add support to git-restore.
It's not related to nd/switch-and-restore though and I
will have even more debug out after
capabilities.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
fetch-pack.c | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/fetch-pack.c b/fetch-pack.c
index de935f8776..445a261f14 100644
--- a/fetch-pack.c
+++ b/fetch-pack.c
@@ -902
or printing all supported
capabilities the server sends us. But I think it's still valuable this
way because we see the capabilities that the client cares about.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
fetch-pack.c | 30 +-
1 file changed, 21 insertions(+), 9 deletions(-)
This reduces the work on translators since they only have one string to
translate (and I think it's still enough context to translate). It also
makes sure no capability name is translated by accident.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
fetch-pack.c | 18 +-
1 file ch
Signed-off-by: Nguyễn Thái Ngọc Duy
---
t/t2070-restore.sh | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/t/t2070-restore.sh b/t/t2070-restore.sh
index 73ea13ede9..2650df1966 100755
--- a/t/t2070-restore.sh
+++ b/t/t2070-restore.sh
@@ -90,9 +90,8 @@ test_expect_success
ommit
exactly as the given source either.
Add --intent-to-add to help track new files in this case, which is the
default on the least surprise principle.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-restore.txt | 7
builtin/checkout.c| 78 +++
loss of local changes and
stuff.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/checkout.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/builtin/checkout.c b/builtin/checkout.c
index bed79ae595..f884d27f1f 100644
--- a/builtin/checkout.c
+++ b/builtin/chec
x27; is just annoyance.
But I don't find myself using it and I'm a pretty heavy detached user.
So while it kinda makes sense to do, I don't think it's worth the
complication.
Nguyễn Thái Ngọc Duy (4):
t2027: use test_must_be_empty
switch: allow to switch in the middle of bis
s case a
bit shorter.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
contrib/completion/git-completion.bash | 4
1 file changed, 4 insertions(+)
diff --git a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 58d18d41a2..656e49710e 100644
--- a/contrib/completion
Signed-off-by: Nguyễn Thái Ngọc Duy
---
cache-tree.c | 41 -
cache-tree.h | 5 -
read-cache.c | 2 +-
3 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/cache-tree.c b/cache-tree.c
index b13bfaf71e..fc44016fe8 100644
--- a/cache-tree.c
The big part of UNTR extension is dumped at the end instead of dumping
as soon as we read it, because we actually "patch" some fields in
untracked_cache_dir with EWAH bitmaps at the end.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
dir.c
rbose even on a small repository such as git.git.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-ls-files.txt | 5 +++
builtin/ls-files.c | 30 +++---
cache.h| 2 +
json-writer.c | 16
json-writer.h
Signed-off-by: Nguyễn Thái Ngọc Duy
---
read-cache.c | 34 +-
1 file changed, 29 insertions(+), 5 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index 04863c3853..200834e77e 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1911,7 +1911,7 @@ struct
Signed-off-by: Nguyễn Thái Ngọc Duy
---
read-cache.c | 2 +-
resolve-undo.c | 36 +++-
resolve-undo.h | 4 +++-
3 files changed, 39 insertions(+), 3 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index eec030b3bb..3b5c63f53a 100644
--- a/read-cache.c
Signed-off-by: Nguyễn Thái Ngọc Duy
---
read-cache.c | 30 +++---
1 file changed, 27 insertions(+), 3 deletions(-)
diff --git a/read-cache.c b/read-cache.c
index 3b5c63f53a..04863c3853 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -1914,7 +1914,7 @@ struct
Signed-off-by: Nguyễn Thái Ngọc Duy
---
json-writer.c | 14 ++
json-writer.h | 2 ++
split-index.c | 13 -
3 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/json-writer.c b/json-writer.c
index 281bc50b39..70403580ca 100644
--- a/json-writer.c
+++ b/json
Signed-off-by: Nguyễn Thái Ngọc Duy
---
fsmonitor.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/fsmonitor.c b/fsmonitor.c
index 1dee0aded1..f6ba437255 100644
--- a/fsmonitor.c
+++ b/fsmonitor.c
@@ -3,6 +3,7 @@
#include "dir.h"
#include "ewah/ewok.h"
#
g to merge it to git.git just for a
single user. Maintaining off tree is still a pain for me, but I think
I can manage it.
Nguyễn Thái Ngọc Duy (8):
ls-files: add --json to dump the index
split-index.c: dump "link" extension as json
fsmonitor.c: dump "FSMN" extension as json
ll be fine because we should "join" all those processes
before this step.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/fetch-options.txt | 4
builtin/fetch.c | 17 +++--
t/t5514-fetch-multiple.sh | 7 +--
3 files changed, 2
is called on a command
that does not support --git-completion-helper. And we do have a
generic call
__git_complete_common "$command"
but this case is protected with __git_support_parseopt_helper so we're
good.
Reported-by: Felipe Contreras
Signed-off-by: Nguyễn Thái Ngọc Du
is called on a command
that does not support --git-completion-helper. And we do have a
generic call
__git_complete_common "$command"
but this case is protected with __git_support_parseopt_helper so we're
good.
Reported-by: Felipe Contreras
Signed-off-by: Nguyễn Thái Ngọc Du
ndled the same (sane) way. For OPT_ABBREV
this is new behavior. But it makes it consistent with the rest.
PS. OPT_MAGNITUDE has similar code but git_parse_ulong() does detect
empty "arg". So it's good to go.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
parse-options-cb.c | 3 +++
ed without any argument, the option
should be accepted, and the default value should be used. Without
PARSE_OPT_OPTARG, parse_options() will reject this case and cause a
regression.
Reported-by: Bryan Turner
Signed-off-by: Nguyễn Thái Ngọc Duy
---
diff.c| 10
ks may
be implemented in the future to prevent class of bugs.
Reported-by: Todd Zullinger
Signed-off-by: Nguyễn Thái Ngọc Duy
---
diff.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/diff.h b/diff.h
index b20cbcc091..d5e44baa96 100644
--- a/diff.h
+++ b/diff.h
@@ -169,7 +169,
v2 reduces diff noise. My C is rusty (and probably holey too). For some
reason I remember "unsigned" is equivalent to "unsigned short", not
"unsigned int".
Nguyễn Thái Ngọc Duy (3):
diff-parseopt: correct variable types that are used by parseopt
diff-par
ning.
The catch though, is that we can only call a function in variable
declaration if it's in automatic scope. Global and static 'struct
option' variables will fail to build after this. But I think this is an
reasonable price to pay, compared to memory corruption.
Signed-off-by: Ngu
with that later.
The third patch also brings back a corner case behavior of
--inter-hunk-context and as a result strengthens OPT_INTEGER() error
handling a bit.
Nguyễn Thái Ngọc Duy (3):
diff-parseopt: correct variable types that are used by parseopt
diff-parseopt: restore -U (no argument) b
ed without any argument, the option
should be accepted, and the default value should be used. Without
PARSE_OPT_OPTARG, parse_options() will reject this case and cause a
regression.
Reported-by: Bryan Turner
Signed-off-by: Nguyễn Thái Ngọc Duy
---
diff.c| 10
ndled the same (sane) way. For OPT_ABBREV
this is new behavior. But it makes it consistent with the rest.
PS. OPT_MAGNITUDE has similar code but git_parse_ulong() does detect
empty "arg". So it's good to go.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
parse-options-cb.c | 3 +++
ks may
be implemented in the future to prevent class of bugs.
Reported-by: Todd Zullinger
Signed-off-by: Nguyễn Thái Ngọc Duy
---
diff.h | 70 +-
1 file changed, 35 insertions(+), 35 deletions(-)
diff --git a/diff.h b/diff.h
index b20cbcc091
zation. It's less effort than the first
one, and also safer because you could still miss things during the code
audit. The extra allocation cost is not a real concern.
The 'index' field is still freed and reset to NULL in repo_clear(). But
after that call, a lot more is missing in
Another round because apparently the test case is not perfect.
Nguyễn Thái Ngọc Duy (2):
merge: remove drop_save() in favor of remove_merge_branch_state()
merge: add --quit
Documentation/git-merge.txt | 4
branch.c| 11 ---
branch.h| 6
can't even continue the merge anymore.
This also makes all in-progress commands, am, merge, rebase, revert and
cherry-pick, take all three --abort, --continue and --quit (bisect has a
different UI).
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-merge.txt | 4
builtin/merge.c
and use
it instead of drop_save(). This function will also be used in the next
patch that introduces --quit.
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
branch.c| 11 ---
branch.h| 6 ++
builtin/merge.c | 17 +
3 files
can't even continue the merge anymore.
This also makes all in-progress commands, am, merge, rebase, revert and
cherry-pick, take all three --abort, --continue and --quit (bisect has a
different UI).
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-merge.txt | 4
builtin/merge.c
and use
it instead of drop_save(). This function will also be used in the next
patch that introduces --quit.
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
branch.c| 11 ---
branch.h| 6 ++
builtin/merge.c | 17 +
3 files
v3 fixes the test breakage when GPG tests are skipped ('side' branch is
affected by these skipped tests)
Nguyễn Thái Ngọc Duy (2):
merge: remove drop_save() in favor of remove_merge_branch_state()
merge: add --quit
Documentation/git-merge.txt | 4
branch.c
allow adding same path multiple
times, 2018-08-28), or since v2.20.0. Though the real bug in
find_worktree() is much older.
Reported-by: Shaheed Haque
Signed-off-by: Nguyễn Thái Ngọc Duy
---
t/t2025-worktree-add.sh | 12
worktree.c | 7 +--
2 files changed
e on.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/init-db.c | 3 +++
t/t0001-init.sh| 2 +-
t/t1301-shared-repo.sh | 6 +++---
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/builtin/init-db.c b/builtin/init-db.c
index 93eff7618c..6b72a9bb09 100644
--- a/builtin/ini
A couple typos in the commit message. No code change.
Nguyễn Thái Ngọc Duy (2):
merge: remove drop_save() in favor of remove_merge_branch_state()
merge: add --quit
Documentation/git-merge.txt | 4
branch.c| 11 ---
branch.h| 6
can't even continue the merge anymore.
This also makes all in-progress commands, am, merge, rebase, revert and
cherry-pick, take all three --abort, --continue and --quit (bisect has a
different UI).
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
Documentation/git
and use
it instead of drop_save(). This function will also be used in the next
patch that introduces --quit.
Signed-off-by: Nguyễn Thái Ngọc Duy
Signed-off-by: Junio C Hamano
---
branch.c| 11 ---
branch.h| 6 ++
builtin/merge.c | 17 +
3 files
This patch is essentially no-op. It allows to parse_options() to handle
some options. But the new option list remains empty. The option will be
moved one by one from the old manual parsing code to this list.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 44
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 19 ---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/revision.c b/revision.c
index d34e17984d..6efa9bee1e 100644
--- a/revision.c
+++ b/revision.c
@@ -2452,6 +2452,18 @@ static int rev_opt_glob(const struct
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 15 ---
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/revision.c b/revision.c
index f04eb7f140..dd22ac5c39 100644
--- a/revision.c
+++ b/revision.c
@@ -2601,6 +2601,9 @@ static void make_pseudo_options(struct
This block at the top of rev_info is "Starting list" and repo is
obviously not one. Move it to the bottom since it's not that important
to stay on top.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 34 +-
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/revision.c b/revision.c
index 5183cdf66d..bcfca8856f 100644
--- a/revision.c
+++ b/revision.c
@@ -2425,6 +2425,27 @@ static int
e the same one from
the diff option parser (which runs first now, if not overriden)
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/technical/api-diff.txt | 6 +--
diff.c | 16 ---
diff.h | 1 -
revis
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 34 +-
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/revision.c b/revision.c
index 0d34f81716..5183cdf66d 100644
--- a/revision.c
+++ b/revision.c
@@ -2425,6 +2425,27 @@ static int
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 41 ++---
revision.h | 2 ++
2 files changed, 32 insertions(+), 11 deletions(-)
diff --git a/revision.c b/revision.c
index 65d40c9255..9a346577f6 100644
--- a/revision.c
+++ b/revision.c
@@ -30,6 +30,10
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 19 ---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/revision.c b/revision.c
index 6efa9bee1e..9cfa4dc151 100644
--- a/revision.c
+++ b/revision.c
@@ -2438,6 +2438,18 @@ static int rev_opt_exclude(const struct
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 47 ++-
1 file changed, 30 insertions(+), 17 deletions(-)
diff --git a/revision.c b/revision.c
index b02cb4660b..f04eb7f140 100644
--- a/revision.c
+++ b/revision.c
@@ -2464,6 +2464,29 @@ static int
not quite done with those
last "10 more" patches yet [2], still stuck at that ancient blame UI.
But I should be done by the 76 patches are merged.
[1] https://gitlab.com/pclouds/git/commits/revision-opt-parse-options
[2] https://gitlab.com/pclouds/git/commits/parse-options-step-no-more
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 28 +---
1 file changed, 21 insertions(+), 7 deletions(-)
diff --git a/revision.c b/revision.c
index bcfca8856f..013b8ec19f 100644
--- a/revision.c
+++ b/revision.c
@@ -30,6 +30,9 @@
#include "prio-queue.h"
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 19 ++-
1 file changed, 14 insertions(+), 5 deletions(-)
diff --git a/revision.c b/revision.c
index 013b8ec19f..d34e17984d 100644
--- a/revision.c
+++ b/revision.c
@@ -2428,6 +2428,16 @@ static int rev_opt_branches(const
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 28 +---
1 file changed, 21 insertions(+), 7 deletions(-)
diff --git a/revision.c b/revision.c
index 7db1109b57..0d34f81716 100644
--- a/revision.c
+++ b/revision.c
@@ -2387,6 +2387,23 @@ static int rev_opt_all(const
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 38 +-
1 file changed, 29 insertions(+), 9 deletions(-)
diff --git a/revision.c b/revision.c
index 9a346577f6..7db1109b57 100644
--- a/revision.c
+++ b/revision.c
@@ -34,6 +34,10 @@
OPT_CALLBACK_F(s
consumption is not at all a concern.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.h | 164 ++---
1 file changed, 82 insertions(+), 82 deletions(-)
diff --git a/revision.h b/revision.h
index 4134dc6029..01e4c42274 100644
--- a/revision.h
+++ b/revision.h
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 18 +++---
1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/revision.c b/revision.c
index 9cfa4dc151..b02cb4660b 100644
--- a/revision.c
+++ b/revision.c
@@ -2464,6 +2464,17 @@ static int rev_opt_glob(const struct
Signed-off-by: Nguyễn Thái Ngọc Duy
---
parse-options-cb.c | 8
parse-options.h| 4
revision.c | 10 --
3 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/parse-options-cb.c b/parse-options-cb.c
index 6e2e8d6273..7cdbbf5f6d 100644
--- a/parse
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/revision.c b/revision.c
index c53347d362..42d466cd08 100644
--- a/revision.c
+++ b/revision.c
@@ -1996,6 +1996,9 @@ static void make_rev_options(struct rev_info *revs
Signed-off-by: Nguyễn Thái Ngọc Duy
---
revision.c | 29 +++--
1 file changed, 15 insertions(+), 14 deletions(-)
diff --git a/revision.c b/revision.c
index f15aa3e62d..c53347d362 100644
--- a/revision.c
+++ b/revision.c
@@ -1976,12 +1976,26 @@ static int rev_opt_abbrev
This is a complete line. We're not expecting the next function to add
anything to the same line.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/submodule--helper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/submodule--helper.c b/builtin/submodule--hel
y the `label` command
worktree-local, 2018-04-25)
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-worktree.txt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index 85d92c9761..8ed5250d5f 100644
and use
it instead of drop_save(). This function will also be used in the next
patch that introduces --quit.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
branch.c| 11 ---
branch.h| 6 ++
builtin/merge.c | 17 +
3 files changed, 19 insertions(+), 15
can't even continue the merge anymore.
This also makes all in-progress commands, am, merge, rebase, revert and
cherry-pick, take all three --abort, --continue and --quit (bisect has a
different UI).
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-merge.txt | 4
builtin/merge.c
-2ba9-a607-dd2ecba54...@gmail.com/
Nguyễn Thái Ngọc Duy (2):
merge: remove drop_save() in favor of remove_merge_branch_state()
merge: add --quit
Documentation/git-merge.txt | 4
branch.c| 11 ---
branch.h| 6 ++
builtin/merg
en it becomes a problem. So far we don't even have two
aliases of any option.
A big chunk of code is actually from Junio C Hamano.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
OK it's working for real this time. test-parse-options.c is also
updated to for testing OPT_ALIAS.
bu
e branches
commitRecord changes to the repository
merge Join two or more development histories together
rebaseReapply commits on top of another base tip
reset Reset current HEAD to the specified state
switchSwitch branches
tag Create, lis
us" are add, rm and restore.
"git checkout" is also removed from "git help" (i.e. it's no longer
considered a commonly used command)
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-clean.txt| 2 +-
Documentation/git-commit.txt | 2 +-
D
flaw in the UI, we could still fix
it. If everything goes well and nobody complains loudly, we can remove
the experimental status by reverting this patch.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
Documentation/git-restore.txt | 2 ++
Documentation/git-switch.txt | 2 ++
2 files changed, 4 inser
Signed-off-by: Nguyễn Thái Ngọc Duy
---
t/lib-patch-mode.sh | 12
t/t2070-restore.sh (new +x) | 99 +++
t/t2071-restore-patch.sh (new +x) | 110 ++
3 files changed, 221 insertions(+)
diff --git a/t/lib-patch-mode.sh
e diff looks a bit iffy since --force is moved to
add_common_switch_branch_options() (i.e. for switching). But
git-checkout is also doing switching and inherits this --force.
Signed-off-by: Nguyễn Thái Ngọc Duy
---
builtin/checkout.c | 29 -
1 file changed, 20 insertions(
1 - 100 of 5892 matches
Mail list logo