[PATCH 07/23] fsck: stop checking tag->tagged

2019-10-17 Thread Jeff King
Way back in 92d4c85d24 (fsck-cache: fix SIGSEGV on bad tag object, 2005-05-03), we added an fsck check that the "tagged" field of a tag struct isn't NULL. But that was mainly protecting the printing code for "--tags", and that code wasn't moved along with the check as part of ba002f3b28 (builtin-fs

[PATCH 06/23] fsck: stop checking commit->parent counts

2019-10-17 Thread Jeff King
In 4516338243 (builtin-fsck: reports missing parent commits, 2008-02-25), we added code to check that fsck found the same number of parents from parsing the commit itself as we see in the commit struct we got from parse_commit_buffer(). Back then the rationale was that the normal commit parser migh

[PATCH 05/23] fsck: stop checking commit->tree value

2019-10-17 Thread Jeff King
We check in fsck_commit_buffer() that commit->tree isn't NULL, which in turn generally comes from a previous parse by parse_commit(). But this isn't really accomplishing anything. The two things we might care about are: - was there a syntactically valid "tree " line in the object? But we've

Re: [PATCH 1/1] .gitignore: stop ignoring `.manifest` files

2019-09-05 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > ... > Further reading on auto-generated `.manifest` files: > https://docs.microsoft.com/en-us/cpp/build/manifest-generation-in-visual-studio > > Signed-off-by: Johannes Schindelin > --- > .gitignore | 1 - > 1 file changed, 1 deletion(-) Thanks.

[PATCH 1/1] .gitignore: stop ignoring `.manifest` files

2019-09-05 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin On Windows, it is possible to embed additional metadata into an executable by linking in a "manifest", i.e. an XML document that describes capabilities and requirements (such as minimum or maximum Windows version). These XML documents are expected to be stored in `.manif

Re: [PATCH] replace: stop replace lookup when reaching a self-reference

2019-08-29 Thread Jeff King
On Thu, Aug 29, 2019 at 08:22:49PM +0900, Mike Hommey wrote: > It is possible to end up in situations where a replace ref points to > itself. In that case, it would seem better to stop the lookup rather > than try to follow the link infinitely and fail with "replace depth too >

[PATCH] replace: stop replace lookup when reaching a self-reference

2019-08-29 Thread Mike Hommey
It is possible to end up in situations where a replace ref points to itself. In that case, it would seem better to stop the lookup rather than try to follow the link infinitely and fail with "replace depth too high". Signed-off-by: Mike Hommey --- replace-object.c | 2 +- 1 file

[PATCH v2 11/13] t4014: stop losing return codes of git commands

2019-08-26 Thread Denton Liu
Currently, there are two ways where the return codes of Git commands are lost. The first way is when a command is in the upstream of a pipe. In a pipe, only the return code of the last command is used. Thus, all other commands will have their return codes masked. Rewrite pipes so that there are no

[PATCH 11/13] t4014: stop losing return codes of git commands

2019-08-24 Thread Denton Liu
Currently, there are two ways where the return codes of Git commands are lost. The first way is when a command is in the upstream of a pipe. In a pipe, only the return code of the last command is used. Thus, all other commands will have their return codes masked. Rewrite pipes so that there are no

Re: [PATCH v3 10/13] t4014: stop losing return codes of git commands

2019-08-20 Thread Johannes Sixt
Am 20.08.19 um 09:31 schrieb Denton Liu: > Oops, this should read > > git_version="$(git --version >version && sed "s/.* //"

Re: [PATCH v3 10/13] t4014: stop losing return codes of git commands

2019-08-20 Thread Denton Liu
On Tue, Aug 20, 2019 at 03:19:08AM -0400, Denton Liu wrote: > @@ -808,20 +821,24 @@ test_expect_success 'format-patch > --ignore-if-in-upstream HEAD' ' > git format-patch --ignore-if-in-upstream HEAD > ' > > -git_version="$(git --version | sed "s/.* //")" > +test_expect_success 'get git v

[PATCH v3 10/13] t4014: stop losing return codes of git commands

2019-08-20 Thread Denton Liu
Currently, there are two ways where the return codes of Git commands are lost. The first way is when a command is in the upstream of a pipe. In a pipe, only the return code of the last command is used. Thus, all other commands will have their return codes masked. Rewrite pipes so that there are no

Re: How to determine when to stop receiving pack content

2019-08-11 Thread Pratyush Yadav
>> little confused how to > >> determine a server response has ended. Specifically, after a client sends > >> its requested 'want', the > >> server sends the pack content over. However, how does the client know to > >> stop reading data? If I

Re: How to determine when to stop receiving pack content

2019-08-11 Thread Farhan Khan
ed. Specifically, after a client sends >> its requested 'want', the >> server sends the pack content over. However, how does the client know to >> stop reading data? If I >> run a simple read() of the file descriptor: >> >> A. If I use reading blocking,

Re: How to determine when to stop receiving pack content

2019-08-11 Thread Junio C Hamano
ever, how does the > client know to stop reading data? If I run a simple read() of the > file descriptor: > > A. If I use reading blocking, the client will wait until new data is > available, potentially forever. > B. If I use non-blocking, the client might terminate reading for n

Re: How to determine when to stop receiving pack content

2019-08-11 Thread Pratyush Yadav
content over. > However, how does the client know to stop reading data? If I run a simple > read() of the file descriptor: > > A. If I use reading blocking, the client will wait until new data is > available, potentially forever. > B. If I use non-blocking, the client might

How to determine when to stop receiving pack content

2019-08-10 Thread Farhan Khan
Hi, I am trying to write an implementation of git clone over ssh and am a little confused how to determine a server response has ended. Specifically, after a client sends its requested 'want', the server sends the pack content over. However, how does the client know to stop reading

Re: [PATCH 3/3] config: stop checking whether the_repository is NULL

2019-08-08 Thread Johannes Schindelin
use after seeing that > we have no configured git dir, we then fall back to discover_git_dir(), > which happily reports back the same bogus $GIT_DIR. > > So I think there'd be some more cleanup required there. But the general > direction is that in the near future we probably ou

Re: [PATCH 3/3] config: stop checking whether the_repository is NULL

2019-08-06 Thread Jeff King
. So I think there'd be some more cleanup required there. But the general direction is that in the near future we probably ought to be checking startup_info->have_repository and not the_repository->gitdir. But I think in the long-term, we probably ought to be getting rid of startup_info-&

[PATCH 3/3] config: stop checking whether the_repository is NULL

2019-08-06 Thread Jeff King
Since the previous commit, our invariant that the_repository is never NULL is restored, and we can stop being defensive in include_by_branch(). We can confirm the fix by showing that an onbranch config include will not cause a segfault when run outside a git repository. I've put this in

[PATCH v2 02/16] t3400: stop referring to the scripted rebase

2019-07-31 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin One test case's title mentioned the then-current implementation detail that the `--am` backend was implemented in `git-rebase--am.sh`. This is no longer the case, so let's update the title to reflect the current reality. Signed-off-by: Johannes Schindelin Signed-off-b

[PATCH 1/6] setup_traverse_info(): stop copying oid

2019-07-30 Thread Jeff King
We assume that if setup_traverse_info() is passed a non-empty "base" string, that string is pointing into a tree object and we can read the object oid by skipping past the trailing NUL. As it turns out, this is not true for either of the two calls, and we may end up reading garbage bytes: 1. In

Re: [PATCH v2 3/8] grep: stop using a custom JIT stack with PCRE v1

2019-07-28 Thread Carlo Arenas
On Fri, Jul 26, 2019 at 8:09 AM Ævar Arnfjörð Bjarmason wrote: > > It will also implicitly re-enable UTF-8 validation for PCRE v1. As > noted in [1] we now have cases as a result where PCRE v1 is more eager > to error out. Subsequent patches will fix that for v2, and I think > it's fair to tell v1

Re: [PATCH v2 2/8] grep: stop "using" a custom JIT stack with PCRE v2

2019-07-28 Thread Carlo Arenas
On Fri, Jul 26, 2019 at 8:08 AM Ævar Arnfjörð Bjarmason wrote: > > As noted in [3] there are known regexes that will fail with the lower > stack limit, the way GNU grep fixed it is interesting, although I > believe the implementation is overly verbose, they could make PCRE v2 > handle that gradual

[PATCH v2 3/8] grep: stop using a custom JIT stack with PCRE v1

2019-07-26 Thread Ævar Arnfjörð Bjarmason
Simplify the PCRE v1 code for the same reasons as for the PCRE v2 code in the last commit. Unlike with v2 we actually used the custom stack in v1, but let's use PCRE's built-in 32 KB one instead, since experience with v2 shows that's enough. Most distros are already using v2 as a default, and the u

[PATCH v2 2/8] grep: stop "using" a custom JIT stack with PCRE v2

2019-07-26 Thread Ævar Arnfjörð Bjarmason
As reported in [1] the code I added in 94da9193a6 ("grep: add support for PCRE v2", 2017-06-01) to use a custom JIT stack has never worked. It was incorrectly copy/pasted from code I added in fbaceaac47 ("grep: add support for the PCRE v1 JIT API", 2017-05-25), which did work. Thus our intention o

Re: [PATCH 3/3] grep: stop using a custom JIT stack with PCRE v1

2019-07-26 Thread Ævar Arnfjörð Bjarmason
On Fri, Jul 26 2019, Carlo Arenas wrote: > On Fri, Jul 26, 2019 at 6:50 AM Ævar Arnfjörð Bjarmason > wrote: >> >> On Fri, Jul 26 2019, Carlo Arenas wrote: >> >> > since this moves PCRE1 out of the JIT fast path, >> >> I think you're mostly replying to the wrong thread. None of the patches >> I'

Re: [PATCH 3/3] grep: stop using a custom JIT stack with PCRE v1

2019-07-26 Thread Carlo Arenas
On Fri, Jul 26, 2019 at 6:50 AM Ævar Arnfjörð Bjarmason wrote: > > On Fri, Jul 26 2019, Carlo Arenas wrote: > > > since this moves PCRE1 out of the JIT fast path, > > I think you're mostly replying to the wrong thread. None of the patches > I've sent disable PCRE v1 JIT, as the performance numbers

Re: [PATCH 3/3] grep: stop using a custom JIT stack with PCRE v1

2019-07-26 Thread Ævar Arnfjörð Bjarmason
On Fri, Jul 26 2019, Carlo Arenas wrote: > since this moves PCRE1 out of the JIT fast path, I think you're mostly replying to the wrong thread. None of the patches I've sent disable PCRE v1 JIT, as the performance numbers show. The JIT stack is resized, and for v2 some dead code removed. > int

Re: [PATCH 3/3] grep: stop using a custom JIT stack with PCRE v1

2019-07-26 Thread Carlo Arenas
since this moves PCRE1 out of the JIT fast path, introduces the regression where git grep will abort if there is binary data or non UTF-8 text in the repository/log and should be IMHO hold out until a fix for that can be merged. this also needs additional changes to better support NO_LIBPCRE1_JIT,

Re: [PATCH] stop it from failing silently when git apply patch and show err info

2019-07-25 Thread simon gao
I create 001.patch in dir, ceph_master ceph_master |--- .git |--- src |--- tools |--- ... local project directory: storage |---.git |---ceph_**.*.** |--- src |--- tools |--- ... I'm trying to apply the patch, and git apply patch doesn't give me any errors. like this cd storage/ceph_*

[PATCH] stop it from failing silently when git apply patch and show err info

2019-07-25 Thread simon gao
Signed-off-by: simon gao --- apply.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apply.c b/apply.c index 4992eca..47b16aa 100644 --- a/apply.c +++ b/apply.c @@ -2093,8 +2093,10 @@ static int use_patch(struct apply_state *state, struct patch *p) /* Paths outside

[PATCH] stop it from failing silently when git apply patch and show err info

2019-07-25 Thread simon gao
Signed-off-by: simon gao --- apply.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apply.c b/apply.c index 4992eca..f66a6ff 100644 --- a/apply.c +++ b/apply.c @@ -2094,6 +2094,7 @@ static int use_patch(struct apply_state *state, struct patch *p) if (state->prefix && *state->prefix)

Re: [PATCH 2/3] grep: stop "using" a custom JIT stack with PCRE v2

2019-07-24 Thread Carlo Arenas
On Wed, Jul 24, 2019 at 1:20 PM Ævar Arnfjörð Bjarmason wrote: > On Wed, Jul 24 2019, Junio C Hamano wrote: > > > > Does everybody use pcre2 with JIT with Git these days, or only those > > who want to live near the bleeding edge? > > My informal survey of various package recipies suggests that all

Re: [PATCH 2/3] grep: stop "using" a custom JIT stack with PCRE v2

2019-07-24 Thread Ævar Arnfjörð Bjarmason
On Wed, Jul 24 2019, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> Since we've haven't had any reports of users running into >> PCRE2_ERROR_JIT_STACKLIMIT in the wild I think we can safely assume >> that we can just use the library defaults instead and drop this >> code. > > Doe

Re: [PATCH 2/3] grep: stop "using" a custom JIT stack with PCRE v2

2019-07-24 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Since we've haven't had any reports of users running into > PCRE2_ERROR_JIT_STACKLIMIT in the wild I think we can safely assume > that we can just use the library defaults instead and drop this > code. Does everybody use pcre2 with JIT with Git these days, or o

[PATCH 3/3] grep: stop using a custom JIT stack with PCRE v1

2019-07-24 Thread Ævar Arnfjörð Bjarmason
Simplify the PCRE v1 code for the same reasons as for the PCRE v2 code in the last commit. Unlike with v2 we actually used the custom stack in v1, but let's use PCRE's built-in 32 KB one instead, since experience with v2 shows that's enough. Most distros are already using v2 as a default, and the u

[PATCH 2/3] grep: stop "using" a custom JIT stack with PCRE v2

2019-07-24 Thread Ævar Arnfjörð Bjarmason
As reported in [1] the code I added in 94da9193a6 ("grep: add support for PCRE v2", 2017-06-01) to use a custom JIT stack has never worked. It was incorrectly copy/pasted from code I added in fbaceaac47 ("grep: add support for the PCRE v1 JIT API", 2017-05-25), which did work. Thus our intention o

[PATCH v3 4/8] t6040 test: stop using global "script" variable

2019-06-21 Thread Ævar Arnfjörð Bjarmason
Change test code added in c0234b2ef6 ("stat_tracking_info(): clear object flags used during counting", 2008-07-03) to stop using the "script" variable also used for lazy prerequisites in test-lib-functions.sh. Since this test uses test_i18ncmp and expects to use its own "

[PATCH v2 4/8] t6040 test: stop using global "script" variable

2019-06-20 Thread Ævar Arnfjörð Bjarmason
Change test code added in c0234b2ef6 ("stat_tracking_info(): clear object flags used during counting", 2008-07-03) to stop using the "script" variable also used for lazy prerequisites in test-lib-functions.sh. Since this test uses test_i18ncmp and expects to use its own "

Re: [PATCH 2/6] t6040 test: stop using global "script" variable

2019-06-20 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > Change test code added in c0234b2ef6 ("stat_tracking_info(): clear > object flags used during counting", 2008-07-03) to stop using the > "script" variable also used for lazy prerequisites in > test-lib-functions.sh. > >

[PATCH 2/6] t6040 test: stop using global "script" variable

2019-06-19 Thread Ævar Arnfjörð Bjarmason
Change test code added in c0234b2ef6 ("stat_tracking_info(): clear object flags used during counting", 2008-07-03) to stop using the "script" variable also used for lazy prerequisites in test-lib-functions.sh. Since this test uses test_i18ncmp and expects to use its own "

Re: [PATCH 1/3] hash-object doc: stop mentioning git-cvsimport

2019-05-21 Thread Jeff King
On Mon, May 20, 2019 at 11:53:10PM +0200, Ævar Arnfjörð Bjarmason wrote: > Remove a reference to git-cvsimport in the intro. As can be seen from > the history of this command[1] it was originally intended for use with > git-cvsimport, but how it uses it (and that it uses it at all) is > irrelevant

[PATCH 1/3] hash-object doc: stop mentioning git-cvsimport

2019-05-20 Thread Ævar Arnfjörð Bjarmason
Remove a reference to git-cvsimport in the intro. As can be seen from the history of this command[1] it was originally intended for use with git-cvsimport, but how it uses it (and that it uses it at all) is irrelevant trivia at this point. 1. See 7672db20c2 ("[PATCH] Expose object ID computation f

STOP CONTACTING THE WRONG OFFICE FOR YOUR REAL FUNDS

2019-05-16 Thread info
<<< No Message Collected >>>

[PATCH 2/5] t3400: stop referring to the scripted rebase

2019-05-14 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin One test case's title mentioned the then-current implementation detail that the `--am` backend was implemented in `git-rebase--am.sh`. This is no longer the case, so let's update the title to reflect the current reality. Signed-off-by: Johannes Schindelin --- t/t3400

[PATCH v4 02/11] gc docs: stop noting "repack" flags

2019-04-07 Thread Ævar Arnfjörð Bjarmason
Remove the mention of specific flags from the "gc" documentation, and leave it at describing what we'll do instead. As seen in builtin/gc.c we'll use various repack flags depending on what we detect we need to do, so this isn't always accurate. More importantly, a subsequent change is about to rem

[PATCH v6 17/27] switch: stop accepting pathspec

2019-03-29 Thread Nguyễn Thái Ngọc Duy
This command is about switching branch (or creating a new one) and should not accept pathspec. This helps simplify ambiguation handling. The other two ("git checkout" and "git restore") of course do accept pathspec as before. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/checkout.c | 20 ++

[PATCH v3 02/11] gc docs: stop noting "repack" flags

2019-03-22 Thread Ævar Arnfjörð Bjarmason
Remove the mention of specific flags from the "gc" documentation, and leave it at describing what we'll do instead. As seen in builtin/gc.c we'll use various repack flags depending on what we detect we need to do, so this isn't always accurate. More importantly, a subsequent change is about to rem

[PATCH v2 02/10] gc docs: stop noting "repack" flags

2019-03-21 Thread Ævar Arnfjörð Bjarmason
Remove the mention of specific flags from the "gc" documentation, and leave it at describing what we'll do instead. As seen in builtin/gc.c we'll use various repack flags depending on what we detect we need to do, so this isn't always accurate. More importantly, a subsequent change is about to rem

[PATCH v5 16/26] switch: stop accepting pathspec

2019-03-21 Thread Nguyễn Thái Ngọc Duy
This command is about switching branch (or creating a new one) and should not accept pathspec. This helps simplify ambiguation handling. The other two ("git checkout" and "git restore") of course do accept pathspec as before. --- builtin/checkout.c | 20 +++- 1 file changed, 15 ins

[PATCH v4 16/26] switch: stop accepting pathspec

2019-03-17 Thread Nguyễn Thái Ngọc Duy
This command is about switching branch (or creating a new one) and should not accept pathspec. This helps simplify ambiguation handling. The other two ("git checkout" and "git restore") of course do accept pathspec as before. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/checkout.c | 20 ++

Re: [PATCH 05/11] tests: use 'test_atexit' to stop httpd

2019-03-14 Thread SZEDER Gábor
quot;$HTTPD_ROOT_PATH"/error.log >&4 2>/dev/null > > test_skip_or_die $GIT_TEST_HTTPD "web server setup failed" > > fi > > } > > > > stop_httpd() { > > - trap 'die' EXIT > > - > > "$LIB_HT

Re: [PATCH 05/11] tests: use 'test_atexit' to stop httpd

2019-03-13 Thread Junio C Hamano
Junio C Hamano writes: > I see most of these changes are removal of stop_httpd because it is > done as part of start_httpd() to arrange it to be called at exit. > > But ... > ... > ... I see we lost many "trap 'die' EXIT" in the orignal. Is that > something we want to lose as part of this commit

Re: [PATCH 05/11] tests: use 'test_atexit' to stop httpd

2019-03-13 Thread Junio C Hamano
t;&4 > if test $? -ne 0 > then > - trap 'die' EXIT > cat "$HTTPD_ROOT_PATH"/error.log >&4 2>/dev/null > test_skip_or_die $GIT_TEST_HTTPD "web server setup failed" > fi >

[PATCH 05/11] tests: use 'test_atexit' to stop httpd

2019-03-13 Thread SZEDER Gábor
Use 'test_atexit' to run cleanup commands to stop httpd at the end of the test script or upon interrupt or failure, as it is shorter, simpler, and more robust than registering such cleanup commands in the trap on EXIT in the test scripts. Signed-off-by: SZEDER Gábor --- t/lib-

[PATCH 04/11] git-daemon: use 'test_atexit` to stop 'git-daemon'

2019-03-13 Thread SZEDER Gábor
From: Johannes Schindelin Use 'test_atexit' to run cleanup commands to stop 'git-daemon' at the end of the test script or upon interrupt or failure, as it is shorter, simpler, and more robust than registering such cleanup commands in the trap on EXIT in the test scripts. Not

[PATCH 06/11] t0301-credential-cache: use 'test_atexit' to stop the credentials helper

2019-03-13 Thread SZEDER Gábor
Use 'test_atexit' to run cleanup commands to stop the credentials helper at the end of the test script or upon interrupt or failure, as it is shorter, simpler, and more robust than registering such cleanup commands in the trap on EXIT in the test scripts. Signed-off-by: SZEDER Gábor --

[PATCH v3 13/21] switch: stop accepting pathspec

2019-03-08 Thread Nguyễn Thái Ngọc Duy
This command is about switching branch (or creating a new one) and should not accept pathspec. This helps simplify ambiguation handling. The other two ("git checkout" and "git restore") of course do accept pathspec as before. --- builtin/checkout.c | 20 +++- 1 file changed, 15 ins

[WIP RFC PATCH 6/7] clone: stop ignoring dotdirs in --local etc. clone

2019-02-25 Thread Ævar Arnfjörð Bjarmason
This seems to never have been intentional, just a side-effect of how the existing code was written. Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/clone.c| 8 +++- t/t5604-clone-reference.sh | 9 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/builti

[PATCH v2 11/19] switch: stop accepting pathspec

2019-02-08 Thread Nguyễn Thái Ngọc Duy
This command is about switching branch (or creating a new one) and should not accept pathspec. This helps simplify ambiguation handling. The other two ("git checkout" and "git restore") of course do accept pathspec as before. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/checkout.c | 20 ++

[PATCH 11/19] switch: stop accepting pathspec

2019-01-30 Thread Nguyễn Thái Ngọc Duy
This command is about switching branch (or creating a new one) and should not accept pathspec. This helps simplify ambiguation handling. The other two ("git checkout" and "git restore") of course do accept pathspec as before. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/checkout.c | 20 ++

[PATCH 05/14] parse-options: stop abusing 'callback' for lowlevel callbacks

2019-01-26 Thread Nguyễn Thái Ngọc Duy
Lowlevel callbacks have different function signatures. Add a new field in 'struct option' with the right type for lowlevel callbacks. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano --- builtin/blame.c| 2 +- builtin/merge.c| 2 +- builtin/update-index.c | 11

[PATCH v2 1/3] Revert "parse-options: allow keep-unknown + stop-at-non-opt combination"

2019-01-21 Thread Nguyễn Thái Ngọc Duy
This reverts commit a85e5a01080e35da0f94bf98f5f334c64e214ce3, which is a revert of 0d260f9a09 (parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together - 2009-03-09). As described in 0d260f9a09, this option combination is tricky to get right and should be prevented unless you

[PATCH 1/3] Revert "parse-options: allow keep-unknown + stop-at-non-opt combination"

2019-01-21 Thread Nguyễn Thái Ngọc Duy
This reverts commit a85e5a01080e35da0f94bf98f5f334c64e214ce3, which is a revert of 0d260f9a09 (parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together - 2009-03-09). As described in 0d260f9a09, this option combination is tricky to get right and should be prevented unless you

Re: [PATCH 03/76] parse-options: allow keep-unknown + stop-at-non-opt combination

2019-01-17 Thread Stefan Beller
On Thu, Jan 17, 2019 at 5:06 AM Nguyễn Thái Ngọc Duy wrote: > > These two are orthogonal. One is about unknown _option_ while the > other non-option. Though 0d260f9a09 ("parseopt: prevent KEEP_UNKNOWN and STOP_AT_NON_OPTION from being used together", 2009-03-09) seemed convincing to have this? M

[PATCH 06/76] parse-options: stop abusing 'callback' for lowlevel callbacks

2019-01-17 Thread Nguyễn Thái Ngọc Duy
Lowlevel callbacks have different function signatures. Add a new field in 'struct option' with the right type for lowlevel callbacks. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/blame.c| 2 +- builtin/merge.c| 2 +- builtin/update-index.c | 11 ++- parse-options-cb.

[PATCH 03/76] parse-options: allow keep-unknown + stop-at-non-opt combination

2019-01-17 Thread Nguyễn Thái Ngọc Duy
These two are orthogonal. One is about unknown _option_ while the other non-option. Signed-off-by: Nguyễn Thái Ngọc Duy --- parse-options.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/parse-options.c b/parse-options.c index eb5de0da29..678b263897 100644 --- a/parse-options.c +++ b/pars

[PATCH v3 1/4] t3510: stop using '-m 1' to force failure mid-sequence of cherry-picks

2019-01-06 Thread Sergey Organov
We are going to allow 'git cherry-pick -m 1' for non-merge commits, so this method to force failure will stop to work. Use '-m 4' instead as it's very unlikely we will ever have such an octopus in this test setup. Signed-off-by: Sergey Organov --- t/t3510-ch

[PATCH 03/75] parse-options: allow keep-unknown + stop-at-non-opt combination

2018-12-27 Thread Nguyễn Thái Ngọc Duy
These two are orthogonal. One is about unknown _option_ while the other non-option. Signed-off-by: Nguyễn Thái Ngọc Duy --- parse-options.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/parse-options.c b/parse-options.c index d47e217b07..4cbcefc262 100644 --- a/parse-options.c +++ b/pars

[PATCH 06/75] parse-options: stop abusing 'callback' for lowlevel callbacks

2018-12-27 Thread Nguyễn Thái Ngọc Duy
Lowlevel callbacks have different function signatures. Add a new field in 'struct option' with the right type for lowlevel callbacks. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/blame.c| 2 +- builtin/merge.c| 2 +- builtin/update-index.c | 11 ++- parse-options-cb.

[PATCH v2 1/4] t3510: stop using '-m 1' to force failure mid-sequence of cherry-picks

2018-12-14 Thread Sergey Organov
We are going to allow 'git cherry-pick -m 1' for non-merge commits, so this method to force failure will stop to work. Use '-m 4' instead as it's very unlikely we will ever have such an octopus in this test setup. Signed-off-by: Sergey Organov --- t/t3510-ch

[PATCH v3 09/14] switch-branch: stop accepting pathspec

2018-11-29 Thread Nguyễn Thái Ngọc Duy
This command is about switching branch (or creating a new one) and should not accept pathspec. This helps simplify ambiguation handling. The other two ("git checkout" and "git restore-files") of course do accept pathspec as before. Signed-off-by: Nguyễn Thái Ngọc Duy --- builtin/checkout.c | 14

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-23 Thread Johannes Schindelin
Hi Peff, On Thu, 22 Nov 2018, Jeff King wrote: > On Thu, Nov 22, 2018 at 01:48:53PM +0100, Johannes Schindelin wrote: > > > So YMMV with git-s. My rule of thumb is: if I want to use this > > myself only, I'll make it an alias. If I want to ship it (e.g. with Git > > for Windows), I'll make it a

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-22 Thread Jeff King
On Thu, Nov 22, 2018 at 01:48:53PM +0100, Johannes Schindelin wrote: > > So it's maybe do-able, but not quite as trivial as one might hope. > > A trivial alternative would be to recommend adding a man page for > 3rd-party git-s. > > In other words, as soon as `git-sizer` is accompanied by `git-s

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-22 Thread Johannes Schindelin
Hi Peff, On Sat, 17 Nov 2018, Jeff King wrote: > On Fri, Nov 16, 2018 at 08:22:11PM +0100, Ævar Arnfjörð Bjarmason wrote: > > > So maybe we should just document this interface better. It seems one > > implicit dependency is that we expect a manpage for the tool to exist > > for --help. > > Yeah

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-16 Thread Jeff King
On Fri, Nov 16, 2018 at 08:22:11PM +0100, Ævar Arnfjörð Bjarmason wrote: > So maybe we should just document this interface better. It seems one > implicit dependency is that we expect a manpage for the tool to exist > for --help. Yeah, I think this really the only problematic assumption. The rest

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-16 Thread Ævar Arnfjörð Bjarmason
On Fri, Nov 16 2018, Michael Haggerty wrote: > On Fri, Nov 16, 2018 at 11:38 AM Ævar Arnfjörð Bjarmason > wrote: >> [...] >> A follow-up on this: We should really fix this for other >> reasons. I.e. compile in some "this is stuff we ourselves think is in >> git". >> >> There's other manifestati

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-16 Thread Michael Haggerty
On Fri, Nov 16, 2018 at 11:38 AM Ævar Arnfjörð Bjarmason wrote: > [...] > A follow-up on this: We should really fix this for other > reasons. I.e. compile in some "this is stuff we ourselves think is in > git". > > There's other manifestations of this, e.g.: > > git-sizer --help # => shows you

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-16 Thread Ævar Arnfjörð Bjarmason
part of the Makefile, >ideally we should do exactly the same thing there so also normal >tests and not just GIT_TEST_INSTALLED (if that worked) would test >in the same mode. > >I gave making that work a bit of a try and gave up in the Makef

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-12 Thread Johannes Schindelin
Hi Ævar, On Fri, 2 Nov 2018, Ævar Arnfjörð Bjarmason wrote: > * GIT_TEST_INSTALLED breaks entirely under this, as early as the >heuristic for "are we built?" being "do we have git-init in >libexecdir?". I tried a bit to make this work, but there's a lot of >dependencies there. I hav

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-05 Thread Ævar Arnfjörð Bjarmason
t > them to be installed as (symlinks|hardlinks|copies), no fallbacks". ... If you're happy to accept a patch that rips out this whole conditional fallback logic and just makes it an if/elsif/elsif for symlink/hardlink/copy this makes things a lot easier. >> Ævar Arnfjörð Bjarm

Re: [RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-02 Thread Junio C Hamano
fallbacks". > Ævar Arnfjörð Bjarmason (5): > Makefile: move long inline shell loops in "install" into helper > Makefile: conform some of the code to our coding standards > Makefile: stop hiding failures during "install" > Makefile

[RFC/PATCH 0/5] stop installing old libexec aliases like "git-init"

2018-11-02 Thread Ævar Arnfjörð Bjarmason
uld test in the same mode. I gave making that work a bit of a try and gave up in the Makefile jungle. Ævar Arnfjörð Bjarmason (5): Makefile: move long inline shell loops in "install" into helper Makefile: conform some of the code to our coding standards

[RFC/PATCH 3/5] Makefile: stop hiding failures during "install"

2018-11-02 Thread Ævar Arnfjörð Bjarmason
Change the fallback mechanism where we try to create hardlinks and ultimately fall back on a plain copy to emit the errors it encounters instead of hiding them away and silently falling back to copying. Hiding these errors dates back to 3e073dc561 ("Makefile: always provide a fallback when hardlin

Re: 2.19.0 regression: leaving editor with empty commit message doesn't stop rebase [was: Re: [RFC PATCH v5 9/9] git-rebase: make --allow-empty-message the default]

2018-09-11 Thread Elijah Newren
Hi, On Tue, Sep 11, 2018 at 7:42 PM SZEDER Gábor wrote: > Lately I noticed that occasionally I ended up with an empty commit > message after an interactive rebase...those empty commit messages are the > consequence of a regression in v2.19.0, which bisects down to this > patch. > > To reproduce t

2.19.0 regression: leaving editor with empty commit message doesn't stop rebase [was: Re: [RFC PATCH v5 9/9] git-rebase: make --allow-empty-message the default]

2018-09-11 Thread SZEDER Gábor
ages was a common error case for > git-commit to deal with, it is a rare case for rebase (or cherry-pick). > The fact that it is rare raises the question of why it would be worth > checking and stopping on this particular condition and not others. For > example, why doesn't an intera

[PATCH v5 9/9] fetch: stop clobbering existing tags without --force

2018-08-31 Thread Ævar Arnfjörð Bjarmason
Change "fetch" to treat "+" in refspecs (aka --force) to mean we should clobber a local tag of the same name. This changes the long-standing behavior of "fetch" added in 853a3697dc ("[PATCH] Multi-head fetch.", 2005-08-20). Before this change, all tag fetches effectively had --force enabled. See t

Re: [PATCH v4 6/6] fetch: stop clobbering existing tags without --force

2018-08-30 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > + > -Unlike when pushing with linkgit:git-push[1], any updates to > -`refs/tags/*` will be accepted without `+` in the refspec (or > -`--force`). The receiving promiscuously considers all tag updates from > -a remote to be forced fetches. > +Until Git version 2

[PATCH v4 6/6] fetch: stop clobbering existing tags without --force

2018-08-30 Thread Ævar Arnfjörð Bjarmason
Change "fetch" to treat "+" in refspecs (aka --force) to mean we should clobber a local tag of the same name. This changes the long-standing behavior of "fetch" added in 853a3697dc ("[PATCH] Multi-head fetch.", 2005-08-20). Before this change, all tag fetches effectively had --force enabled. See t

[PATCH 4/9] midx: stop reporting garbage

2018-08-20 Thread Derrick Stolee
When prepare_packed_git is called with the report_garbage method initialized, we report unexpected files in the objects directory as garbage. Stop reporting the multi-pack-index and the pack-files it covers as garbage. Signed-off-by: Derrick Stolee --- packfile.c | 7 --- 1 file changed, 4

[PATCH 7/7] builtin rebase: stop if `git am` is in progress

2018-08-08 Thread Pratik Karki
This commit checks for the file `applying` used by `git am` in `rebase-apply/` and if the file is present it means `git am` is in progress so it errors out. Signed-off-by: Pratik Karki --- builtin/rebase.c | 5 + 1 file changed, 5 insertions(+) diff --git a/builtin/rebase.c b/builtin/rebase

Re: [PATCH v2 10/10] fetch: stop clobbering existing tags without --force

2018-07-31 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt > index 97d3217df9..5b624caf58 100644 > --- a/Documentation/fetch-options.txt > +++ b/Documentation/fetch-options.txt > @@ -49,11 +49,16 @@ endif::git-pull[] > > -f:: > --force::

[PATCH v2 10/10] fetch: stop clobbering existing tags without --force

2018-07-31 Thread Ævar Arnfjörð Bjarmason
Change "fetch" to treat "+" in refspecs (aka --force) to mean we should clobber a local tag of the same name. This changes the long-standing behavior of "fetch" added in 853a3697dc ("[PATCH] Multi-head fetch.", 2005-08-20), before this change all tag fetches effectively had --force enabled. See th

[PATCH 2/4] t/check-non-portable-shell: stop being so polite

2018-07-12 Thread Eric Sunshine
Error messages emitted by this linting script are long and noisy, consisting of several sections: :: error: : Many problem explanations ask the reader to "please" use a suggested alternative, however, such politeness is unnecessary and just adds to the noise and length of the line, so drop "

Re: [PATCH 02/15] apply.c: stop using index compat macros

2018-07-09 Thread Duy Nguyen
On Tue, Jul 3, 2018 at 8:30 PM Junio C Hamano wrote: > > Duy Nguyen writes: > > > A singe patch conversion would look like below. But for that to > > happen, convert.c, rerere, ws.c and read-cache.c have to be converted > > first to not use the_index. > > Yes, that was pretty much what I was driv

Re: [PATCH 02/15] apply.c: stop using index compat macros

2018-07-03 Thread Junio C Hamano
Duy Nguyen writes: > A singe patch conversion would look like below. But for that to > happen, convert.c, rerere, ws.c and read-cache.c have to be converted > first to not use the_index. Yes, that was pretty much what I was driving at. I do not have any trouble seeing a patch that converts call

Re: [PATCH 02/15] apply.c: stop using index compat macros

2018-06-30 Thread Duy Nguyen
On Mon, Jun 25, 2018 at 10:27:23AM -0700, Junio C Hamano wrote: > Nguyễn Thái Ngọc Duy writes: > > > Signed-off-by: Nguyễn Thái Ngọc Duy > > --- > > apply.c | 34 +++--- > > 1 file changed, 19 insertions(+), 15 deletions(-) > > Until all the codepaths that reach th

Re: [PATCH 02/15] apply.c: stop using index compat macros

2018-06-25 Thread Junio C Hamano
Nguyễn Thái Ngọc Duy writes: > Signed-off-by: Nguyễn Thái Ngọc Duy > --- > apply.c | 34 +++--- > 1 file changed, 19 insertions(+), 15 deletions(-) Until all the codepaths that reach these callsites to index_* functions from cmd_main() are converted to pass "struct

[PATCH 07/15] entry.c: stop using index compat macros

2018-06-15 Thread Nguyễn Thái Ngọc Duy
Signed-off-by: Nguyễn Thái Ngọc Duy --- entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entry.c b/entry.c index 2101201a11..ec588289fb 100644 --- a/entry.c +++ b/entry.c @@ -421,7 +421,8 @@ int checkout_entry(struct cache_entry *ce, if (!check_path(path.buf

  1   2   3   4   5   >