Re: [PATCH 1/2] legacy stash: fix "rudimentary backport of -q"

2019-03-11 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > This can be seen very clearly when passing arguments with special > characters, like > > git stash -- ':(glob)**/*.txt' > > Since this is exactly what we want to test in the next commit (where we > fix this very incantation with the built-in

Re: [PATCH 2/2] built-in stash: handle :(glob) pathspecs again

2019-03-11 Thread Junio C Hamano
"Johannes Schindelin via GitGitGadget" writes: > From: Johannes Schindelin > > When passing a list of pathspecs to, say, `git add`, we need to be > careful to use the original form, not the parsed form of the pathspecs. > > This makes a difference e.g. when calling > > git stash -- ':(glob

Re: [PATCH v13 18/27] stash: convert create to builtin

2019-03-11 Thread Junio C Hamano
Junio C Hamano writes: > Thomas Gummerer writes: > >> Subject: [PATCH 1/2] stash: pass pathspec as pointer >> >> Passing the pathspec by value is potentially confusing, as the copy is >> only a shallow copy, so save the overhead of the copy, and pass the >> pathspec struct as a pointer. >> >> In

Re: [PATCH 0/1] de-alphabetize command list

2019-03-11 Thread frederik
Hey Git people, I didn't get a reply and I'm not sure what the appropriate ping interval is, or when I should conclude that no one is interested. There seemed to be some vaguely positive feedback before I embarked on this project. At the same time I don't want to pester anyone into applying patc

What's cooking in git.git (Mar 2019, #03; Mon, 11)

2019-03-11 Thread Junio C Hamano
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. The tip of 'next' has been rewound

Re: [PATCH v5 1/1] worktree add: sanitize worktree names

2019-03-11 Thread Duy Nguyen
On Mon, Mar 11, 2019 at 1:20 PM Junio C Hamano wrote: > > Eric Sunshine writes: > > >> case 2: > >> + if (last == '.') { /* Refname contains "..". */ > >> + if (sanitized) > >> + sanitized->l

Re: [PATCH 0/2] fix spurious space after linkgit, now in *.html

2019-03-11 Thread Junio C Hamano
Martin Ågren writes: > Ok, then I'll take that offer. I'll squash these two patches into the > original series. Thanks. Our mails might cross, but just in case you haven't started, here are the locally squashed results with updated log messages.

[PATCH v3 1/3] Documentation/Makefile: add missing xsl dependencies for manpages

2019-03-11 Thread Junio C Hamano
From: Martin Ågren These stylesheets very rarely change, but when they do, it really helps if the manpages depend on them. We're casting the net a bit too wide here, since we'll only ever use a subset of the stylesheets, but since these files change so rarely, that should be ok. It's better than

[PATCH v3 2/3] Documentation/Makefile: add missing dependency on asciidoctor-extensions

2019-03-11 Thread Junio C Hamano
From: Martin Ågren asciidoctor-extensions.rb has never changed, but when it does -- such as in the next commit --, it helps if the xml-files depend on it. We're casting the net a bit too wide here, since we'll be rebuilding even with AsciiDoc, which won't look at this file. But since this file ch

[PATCH v3 3/3] asciidoctor-extensions: fix spurious space after linkgit

2019-03-11 Thread Junio C Hamano
From: Martin Ågren When we render, e.g., "linkgit:gitglossary[7]." with Asciidoctor, we get "gitglossary(7) ." with a space between the linkgit macro expansion and the punctuation. We can fix this by dropping the trailing newline after we've turned `linkgit:foo[bar]` into `..`. The diff produced

Re: [PATCH v5 1/1] worktree add: sanitize worktree names

2019-03-11 Thread Duy Nguyen
On Mon, Mar 11, 2019 at 1:36 PM Junio C Hamano wrote: > while (...) > ; /* try again ... */ > > This "strip all .lock repeatedly" made me stop and think a bit; this > will never make the component empty, as the only way for this loop > to make it empty is if

Re: [PATCH v3 04/21] git-checkout.txt: fix monospace typeset

2019-03-11 Thread Duy Nguyen
On Sat, Mar 9, 2019 at 7:35 PM Martin Ågren wrote: > @@ -285,7 +285,7 @@ Note that this option uses the no overlay mode by default > (see also The part not shown here is Using `--recurse-submodules` will update the content of all initialized submodules according to the commit recorded i

Deprecating git diff ..; dealing with other ranges

2019-03-11 Thread Denton Liu
Hello all, I was in the process of deprecating `git diff ..` as discussed here[1]. However, I ran into a weird case that I'm not sure how to deal with. In t3430-rebase-merges.sh:382, we have the following test case which invokes git diff: test_expect_success 'with --autosquash and --exec

Re: [PATCH] contrib/subtree: ensure only one rev is provided

2019-03-11 Thread Denton Liu
On Tue, Feb 12, 2019 at 02:00:02AM -0800, Denton Liu wrote: > On Thu, Feb 07, 2019 at 05:34:38PM -0500, Avery Pennarun wrote: > > But I don't see any major problems with the patch in this thread. > > > > Thanks! > > > > Avery > > Hi Junio, > > If there are no other comments, I think that this p

Re: [PATCH v7 5/8] merge: cleanup messages like commit

2019-03-11 Thread Phillip Wood
Hi Denton/Eric On 11/03/2019 05:49, Eric Sunshine wrote: On Sun, Mar 10, 2019 at 11:42 PM Denton Liu wrote: This change allows git-merge messages to be cleaned up with the commit.cleanup configuration or --cleanup option, just like how git-commit does it. We also give git-pull the passthrough

Re: disabling sha1dc unaligned access, was Re: One failed self test on Fedora 29

2019-03-11 Thread Jeffrey Walton
On Sun, Mar 10, 2019 at 11:37 PM Jeff King wrote: > > On Mon, Mar 11, 2019 at 11:00:25AM +0900, Junio C Hamano wrote: > > > Jeffrey Walton writes: > > > > > I think this is the patch for sha1dc/sha1.c . It stops using unaligned > > > accesses by default, but still honors SHA1DC_FORCE_UNALIGNED_AC

Re: [PATCH v3 04/21] git-checkout.txt: fix monospace typeset

2019-03-11 Thread Martin Ågren
On Mon, 11 Mar 2019 at 10:35, Duy Nguyen wrote: > > On Sat, Mar 9, 2019 at 7:35 PM Martin Ågren wrote: > > > @@ -285,7 +285,7 @@ Note that this option uses the no overlay mode by > > default (see also > The part not shown here is > > Using `--recurse-submodules` will update the content of al

Re: [PATCH 0/2] fix spurious space after linkgit, now in *.html

2019-03-11 Thread Martin Ågren
On Mon, 11 Mar 2019 at 10:24, Junio C Hamano wrote: > > Martin Ågren writes: > > > Ok, then I'll take that offer. I'll squash these two patches into the > > original series. Thanks. > > Our mails might cross, but just in case you haven't started, here > are the locally squashed results with updat

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-11 Thread Phillip Wood
Hi Duy On 08/03/2019 09:57, Nguyễn Thái Ngọc Duy wrote: > "git checkout" doing too many things is a source of confusion for many > users (and it even bites old timers sometimes). To remedy that, the > command will be split into two new ones: switch and > something-to-checkout-paths. I think th

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-11 Thread Duy Nguyen
On Mon, Mar 11, 2019 at 6:16 PM Phillip Wood wrote: > > > Hi Duy > > On 08/03/2019 09:57, Nguyễn Thái Ngọc Duy wrote: > > "git checkout" doing too many things is a source of confusion for many > > users (and it even bites old timers sometimes). To remedy that, the > > command will be split into tw

Re: disabling sha1dc unaligned access, was Re: One failed self test on Fedora 29

2019-03-11 Thread Duy Nguyen
On Mon, Mar 11, 2019 at 10:48 AM Jeff King wrote: > And AFAIK there is no good way to > modify the submodule-provided content as part of the build. Why do we > even have the submodule again? ;P Because of dogfooding of course. This is an interesting use case though. I wonder if people often want

Re: [PATCH 1/1] fixup! upload-pack: refactor reading of pack-objects out

2019-03-11 Thread Johannes Schindelin
Hi Jonathan, On Sun, 3 Mar 2019, Johannes Schindelin wrote: > On Sun, 3 Mar 2019, Junio C Hamano wrote: > > > "Johannes Schindelin via GitGitGadget" > > writes: > > > > > From: Johannes Schindelin > > > > > > This fixes an issue pointed out by clang. > > > > > > Signed-off-by: Johannes Schind

Re: [PATCH v5 1/1] worktree add: sanitize worktree names

2019-03-11 Thread Johannes Schindelin
Hi Duy, On Fri, 8 Mar 2019, Nguyễn Thái Ngọc Duy wrote: > diff --git a/refs.c b/refs.c > index 142888a40a..e9f83018f0 100644 > --- a/refs.c > +++ b/refs.c > @@ -72,30 +72,57 @@ static unsigned char refname_disposition[256] = { > * - it ends with ".lock", or > * - it contains a "@{" portion >

Re: Deprecating git diff ..; dealing with other ranges

2019-03-11 Thread Johannes Schindelin
Hi Denton, On Mon, 11 Mar 2019, Denton Liu wrote: > I was in the process of deprecating `git diff ..` as > discussed here[1]. However, I ran into a weird case that I'm not sure > how to deal with. > > In t3430-rebase-merges.sh:382, we have the following test case which > invokes git diff: > >

RE: [PATCH v1 11/11] doc: promote "git restore"

2019-03-11 Thread Randall S. Becker
> -Original Message- > From: git-ow...@vger.kernel.org On Behalf > Of Elijah Newren > Sent: March 9, 2019 14:38 > To: Nguyễn Thái Ngọc Duy > Cc: Git Mailing List ; Junio C Hamano > > Subject: Re: [PATCH v1 11/11] doc: promote "git restore" > > On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái

RE: Bug: git for Windows spawning a lot of processes recursively

2019-03-11 Thread Garcia, Pierre
Hello Johannes, I installed the following snapshot on the problematic machine: Sun, 10 Mar 2019 17:37:25 +0100 (commit eb5d06f545) Git for Windows installer: 64-bit And the problem is gone! No more issue! At the time I had the issue I was on field trip with limited time and no other version to

Re: [PATCH v3 11/14] switch-branch: only allow explicit detached HEAD

2019-03-11 Thread Duy Nguyen
On Mon, Mar 11, 2019 at 2:32 AM Eckhard Maaß wrote: > > On Thu, Nov 29, 2018 at 10:58:46PM +0100, Nguyễn Thái Ngọc Duy wrote: > > + if (!opts->implicit_detach && > > + !opts->new_branch && > > + !opts->new_branch_force && > > + new_branch_info->name && > > + !ne

Re: [PATCH v1 11/11] doc: promote "git restore"

2019-03-11 Thread Duy Nguyen
On Mon, Mar 11, 2019 at 9:12 PM Randall S. Becker wrote: > > > -Original Message- > > From: git-ow...@vger.kernel.org On Behalf > > Of Elijah Newren > > Sent: March 9, 2019 14:38 > > To: Nguyễn Thái Ngọc Duy > > Cc: Git Mailing List ; Junio C Hamano > > > > Subject: Re: [PATCH v1 11/11]

Re: [PATCH 0/1] de-alphabetize command list

2019-03-11 Thread Jacob Keller
On Mon, Mar 11, 2019 at 2:09 AM wrote: > > Hey Git people, > > I didn't get a reply and I'm not sure what the appropriate ping > interval is, or when I should conclude that no one is interested. > > There seemed to be some vaguely positive feedback before I embarked on > this project. At the same

Re: [PATCH v1 10/11] completion: support restore

2019-03-11 Thread Duy Nguyen
On Sun, Mar 10, 2019 at 2:17 AM Elijah Newren wrote: > > On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > > > > Completion for restore is straightforward. We could still do better > > though by give the list of just tracked files instead of all present > > ones. But let's leave it for

Re: Deprecating git diff ..; dealing with other ranges

2019-03-11 Thread Elijah Newren
Hi, On Mon, Mar 11, 2019 at 2:37 AM Denton Liu wrote: > > Hello all, > > I was in the process of deprecating `git diff ..` as > discussed here[1]. However, I ran into a weird case that I'm not sure > how to deal with. > > In t3430-rebase-merges.sh:382, we have the following test case which > invo

Re: [PATCH v1 10/11] completion: support restore

2019-03-11 Thread Duy Nguyen
On Mon, Mar 11, 2019 at 10:22 PM Duy Nguyen wrote: > > On Sun, Mar 10, 2019 at 2:17 AM Elijah Newren wrote: > > > > On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy > > wrote: > > > > > > Completion for restore is straightforward. We could still do better > > > though by give the list of jus

Fwd: [GSoC][PATCH v2 4/5] t0022-crlf-rename: avoid using pipes

2019-03-11 Thread ttjtftx
Sorry, I forgot to Cc. -- Forwarded message - From: ttjtftx Date: Mon, Mar 11, 2019 at 11:43 PM Subject: Re: [GSoC][PATCH v2 4/5] t0022-crlf-rename: avoid using pipes To: Eric Sunshine On Sun, Mar 10, 2019 at 6:03 PM Eric Sunshine wrote: > All of the patches in this series ar

Re: Refresh index without discard_index + repo_read_index

2019-03-11 Thread Roman Perepelitsa
In the end I managed to patch diffing code in libgit2 (git_diff_tree_to_index and git_diff_index_to_workdir) to make it about 4x faster. It's now faster than `git status`, so good enough for me. I'm still curious whether it's possible to refresh index in git (not libgit2), so please chime if if yo

Re: [PATCH v1 00/11] And new command "restore"

2019-03-11 Thread Elijah Newren
On Sun, Mar 10, 2019 at 4:19 AM Duy Nguyen wrote: > > On Fri, Mar 8, 2019 at 5:17 PM Nguyễn Thái Ngọc Duy wrote: > > - --index has a different meaning in git-apply. I don't have a good > > suggestion except "yeah we have two different worlds now, the old > > and the new one" > > I will rename

Re: [GSoC][PATCH v2 5/5] t0000-basic: use test_line_count instead of wc -l

2019-03-11 Thread ttjtftx
On Sun, Mar 10, 2019 at 5:51 PM Eric Sunshine wrote: > > On Sun, Mar 10, 2019 at 4:11 AM Jonathan Chang wrote: > > Signed-off-by: Jonathan Chang > > > > diff --git a/t/t-basic.sh b/t/t-basic.sh > > @@ -1136,8 +1136,8 @@ test_expect_success 'git commit-tree omits duplicated > > parent in

Re: [PATCH 0/2] stash: handle pathspec magic again

2019-03-11 Thread Johannes Schindelin
Hi Junio, On Sun, 10 Mar 2019, Junio C Hamano wrote: > Johannes Schindelin writes: > > > If you care deeply about the commit history, I hereby offer to you to > > clean up the built-in stash patches when you say you're ready to advance > > them to `master`. > > What's the goal of such a rebase

Re: [PATCH 2/2] built-in stash: handle :(glob) pathspecs again

2019-03-11 Thread Johannes Schindelin
Hi Junio, On Mon, 11 Mar 2019, Junio C Hamano wrote: > "Johannes Schindelin via GitGitGadget" > writes: > > > From: Johannes Schindelin > > > > When passing a list of pathspecs to, say, `git add`, we need to be > > careful to use the original form, not the parsed form of the pathspecs. > > > >

Re: [PATCH 1/1] mingw: allow building with an MSYS2 runtime v3.x

2019-03-11 Thread Johannes Schindelin
Hi Junio, On Sun, 10 Mar 2019, Junio C Hamano wrote: > "Johannes Schindelin via GitGitGadget" > writes: > > > So let's invert that test case to test for *anything else* than a > > version starting with "1" (for MSys). That should safeguard us for the > > future, even if Cygwin ends up releasing

Fwd: [GSoC][PATCH] tests: avoid using pipes

2019-03-11 Thread jonathan chang
Sorry, I forgot to Cc, again. -- Forwarded message - From: ttjtftx Date: Tue, Mar 12, 2019 at 12:32 AM Subject: Re: [GSoC][PATCH] tests: avoid using pipes To: Christian Couder On Sun, Mar 10, 2019 at 11:05 PM Christian Couder wrote: > > On Sun, Mar 10, 2019 at 9:28 AM ttjtftx

Re: [PATCH v7 4/8] sequencer.c: remove duplicate code

2019-03-11 Thread Phillip Wood
Hi Denton One small comment below, this basically looks fine to me On 11/03/2019 03:42, Denton Liu wrote: Since we implemented get_cleanup_mode, we had some duplicate code in git_sequencer_config which essentially performed the same operations. Refactor git_sequencer_config to take advantage of

Re: [PATCH v7 5/8] merge: cleanup messages like commit

2019-03-11 Thread Phillip Wood
Hi Denton On 11/03/2019 03:42, Denton Liu wrote: This change allows git-merge messages to be cleaned up with the commit.cleanup configuration or --cleanup option, just like how git-commit does it. We also give git-pull the passthrough option of --cleanup so that it can also take advantage of th

Re: [PATCH v7 5/8] merge: cleanup messages like commit

2019-03-11 Thread Eric Sunshine
On Mon, Mar 11, 2019 at 6:14 AM Phillip Wood wrote: > On 11/03/2019 05:49, Eric Sunshine wrote: > > On Sun, Mar 10, 2019 at 11:42 PM Denton Liu wrote: > >> + git cat-file -p HEAD |sed -e "1,/^\$/d" >actual && > > > > An earlier patch in this series "fixed" a test with a Git command > > upst

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-11 Thread Phillip Wood
Hi Duy On 11/03/2019 11:47, Duy Nguyen wrote: On Mon, Mar 11, 2019 at 6:16 PM Phillip Wood wrote: Hi Duy On 08/03/2019 09:57, Nguyễn Thái Ngọc Duy wrote: "git checkout" doing too many things is a source of confusion for many users (and it even bites old timers sometimes). To remedy that, t

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-11 Thread Elijah Newren
On Mon, Mar 11, 2019 at 4:47 AM Duy Nguyen wrote: > > On Mon, Mar 11, 2019 at 6:16 PM Phillip Wood > wrote: > > > > Hi Duy > > > > On 08/03/2019 09:57, Nguyễn Thái Ngọc Duy wrote: > > > "git checkout" doing too many things is a source of confusion for many > > > users (and it even bites old time

Re: `git add <>` results in "fatal: ... is outside repository"

2019-03-11 Thread Johannes Sixt
Am 10.03.19 um 23:41 schrieb Anthony Sottile: > git init longname-repo > cd longname-repo > touch f > git add ..\longna~1\f > ... > > C:\Users\Anthony\AppData\Local\Temp\t\pre-commit-hooks\longname-repo>git > add ..\longna~1\f > fatal: ..\longna~1\f: '..\longna~1\f' is outside repository This ha

Re: `git add <>` results in "fatal: ... is outside repository"

2019-03-11 Thread Anthony Sottile
On Mon, Mar 11, 2019 at 10:48 AM Johannes Sixt wrote: > > Am 10.03.19 um 23:41 schrieb Anthony Sottile: > > git init longname-repo > > cd longname-repo > > touch f > > git add ..\longna~1\f > > > ... > > > > C:\Users\Anthony\AppData\Local\Temp\t\pre-commit-hooks\longname-repo>git > > add ..\longna

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-11 Thread Elijah Newren
A few other comments that I thought of while responding elsewhere in the thread that didn't make sense to include elsewhere... On Fri, Mar 8, 2019 at 2:00 AM Nguyễn Thái Ngọc Duy wrote: > > "git checkout" doing too many things is a source of confusion for many > users (and it even bites old timer

Re: `git add <>` results in "fatal: ... is outside repository"

2019-03-11 Thread Torsten Bögershausen
On Mon, Mar 11, 2019 at 06:48:11PM +0100, Johannes Sixt wrote: > Am 10.03.19 um 23:41 schrieb Anthony Sottile: > > git init longname-repo > > cd longname-repo > > touch f > > git add ..\longna~1\f > > > ... > > > > C:\Users\Anthony\AppData\Local\Temp\t\pre-commit-hooks\longname-repo>git > > add ..\

Re: disabling sha1dc unaligned access, was Re: One failed self test on Fedora 29

2019-03-11 Thread Thomas Braun
Am 11.03.2019 um 12:58 schrieb Duy Nguyen: > On Mon, Mar 11, 2019 at 10:48 AM Jeff King wrote: >> And AFAIK there is no good way to >> modify the submodule-provided content as part of the build. Why do we >> even have the submodule again? ;P > > Because of dogfooding of course. This is an interes

Re: `git add <>` results in "fatal: ... is outside repository"

2019-03-11 Thread Anthony Sottile
On Mon, Mar 11, 2019 at 10:55 AM Torsten Bögershausen wrote: > > On Mon, Mar 11, 2019 at 06:48:11PM +0100, Johannes Sixt wrote: > > Am 10.03.19 um 23:41 schrieb Anthony Sottile: > > > git init longname-repo > > > cd longname-repo > > > touch f > > > git add ..\longna~1\f > > > > > ... > > > > > >

Re: disabling sha1dc unaligned access, was Re: One failed self test on Fedora 29

2019-03-11 Thread Jeff King
On Mon, Mar 11, 2019 at 06:40:21AM -0400, Jeffrey Walton wrote: > > So anyway, I think this needs a patch to the upstream sha1dc project. > > https://github.com/cr-marcstevens/sha1collisiondetection/issues/47 Thanks, it looks like the turnaround on that may be pretty quick. Once it's merged ther

Re: disabling sha1dc unaligned access, was Re: One failed self test on Fedora 29

2019-03-11 Thread Jeff King
On Mon, Mar 11, 2019 at 07:15:12PM +0100, Thomas Braun wrote: > Am 11.03.2019 um 12:58 schrieb Duy Nguyen: > > On Mon, Mar 11, 2019 at 10:48 AM Jeff King wrote: > >> And AFAIK there is no good way to > >> modify the submodule-provided content as part of the build. Why do we > >> even have the sub

Re: [PATCH v1 10/11] completion: support restore

2019-03-11 Thread Elijah Newren
// CC'ing Thomas since this touches on a thread elsewhere about the glossary On Mon, Mar 11, 2019 at 8:40 AM Duy Nguyen wrote: > > On Mon, Mar 11, 2019 at 10:22 PM Duy Nguyen wrote: > > > > On Sun, Mar 10, 2019 at 2:17 AM Elijah Newren wrote: > > > > > > On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Th

js/rebase-deprecate-preserve-merges, was Re: What's cooking in git.git (Mar 2019, #03; Mon, 11)

2019-03-11 Thread Johannes Schindelin
Hi Junio, On Mon, 11 Mar 2019, Junio C Hamano wrote: > * js/rebase-deprecate-preserve-merges (2019-03-08) 1 commit > - rebase: deprecate --preserve-merges > > "git rebase --rebase-merges" replaces its old "--preserve-merges" > option; the latter is now marked as deprecated. > > Will merge t

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-11 Thread Elijah Newren
On Sun, Mar 10, 2019 at 5:29 PM Jacob Keller wrote: > > On March 8, 2019 1:57:41 AM PST, "Nguyễn Thái Ngọc Duy" > wrote: > >+:: > >+ Name for the new branch. > >+ > >+:: > >+ The name of a commit at which to switch to before creating a > >+ new branch or detach from. > > The word

Re: [PATCH 1/1] rebase: deprecate --preserve-merges

2019-03-11 Thread Johannes Schindelin
Hi Phillip, On Thu, 7 Mar 2019, Phillip Wood wrote: > It's great to see this. Do we need the deprecation warning in both > builtin/rebase.c and rebase--preserve-merges.sh? Won't that end up warning > twice - maybe that's a good thing but if we go for only one I prefer the > wording in rebase--pre

Re: `git add <>` results in "fatal: ... is outside repository"

2019-03-11 Thread Jack Adrian Zappa
Hey Anthony, Are you sure that you have 8.3 active on the partition you are using? IIRC, It is not on by default anymore. To see, go to a cmd line and type "dir /x". If there are any files that exceed the 8.3 format, it will show those files with two names, the 8.3 name and the long name. If it

Re: [PATCH 1/1] rebase: deprecate --preserve-merges

2019-03-11 Thread Johannes Schindelin
Hi Eric, On Thu, 7 Mar 2019, Eric Sunshine wrote: > On Thu, Mar 7, 2019 at 6:11 AM Johannes Schindelin via GitGitGadget > wrote: > > We have something much better now: --rebase-merges (which is a > > complete re-design --preserve-merges, with a lot of issues fixed such as > > the inability to re

Re: fast-import on existing branches

2019-03-11 Thread Elijah Newren
Hi Norbert, On Fri, Mar 8, 2019 at 9:38 AM Norbert Nemec wrote: > > Thanks, Elijah, I had indeed missed that block about the ^0 handling. > > I still don't get why this awkward workaround is required. Why isn't that > lookup done by default? Performance can't be the reason, since the same > loo

[PATCH v2 0/1] Deprecate git rebase --preserve-merges

2019-03-11 Thread Johannes Schindelin via GitGitGadget
It had a good run, but its design was irreparably limited. So I came up with a redesign:--rebase-merges. It seems to work all right, so now it is time to start letting go of the previous design. Changes since v1: * The term --rebase-merges is now marked as such in the deprecation notice in gi

[PATCH v2 1/1] rebase: deprecate --preserve-merges

2019-03-11 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin We have something much better now: --rebase-merges (which is a complete re-design --preserve-merges, with a lot of issues fixed such as the inability to reorder commits with --preserve-merges). Signed-off-by: Johannes Schindelin --- Documentation/config/branch.txt |

Re: [PATCH 1/1] mingw: respect core.hidedotfiles = false in git-init again

2019-03-11 Thread Johannes Schindelin
Hi Junio, On Fri, 8 Mar 2019, Junio C Hamano wrote: > "Johannes Schindelin via GitGitGadget" > writes: > > > diff --git a/builtin/init-db.c b/builtin/init-db.c > > index 93eff7618c..94df241ad5 100644 > > --- a/builtin/init-db.c > > +++ b/builtin/init-db.c > > @@ -155,6 +155,9 @@ static int git_

[PATCH v2 0/1] Fix git init with core.hidedotfiles

2019-03-11 Thread Johannes Schindelin via GitGitGadget
This fixes an regression that was not present in Git for Windows's original core.hideDotFiles patch, but in the shape of the core.hideDotFiles patch that made it into git.git. We fixed it in one big hurry in Git for Windows, and I simply forgot to upstream this right away. Changes since v1: *

[PATCH v2 1/1] mingw: respect core.hidedotfiles = false in git-init again

2019-03-11 Thread Johannes Schindelin via GitGitGadget
From: Johannes Schindelin This is a brown paper bag. When adding the tests, we actually failed to verify that the config variable is heeded in git-init at all. And when changing the original patch that marked the .git/ directory as hidden after reading the config, it was lost on this developer th

Re: `git add <>` results in "fatal: ... is outside repository"

2019-03-11 Thread Anthony Sottile
On Mon, Mar 11, 2019 at 12:34 PM Jack Adrian Zappa wrote: > > Hey Anthony, > > Are you sure that you have 8.3 active on the partition you are using? > IIRC, It is not on by default anymore. To see, go to a cmd line and > type "dir /x". If there are any files that exceed the 8.3 format, it > will

Re: [PATCH 0/1] Drop last MakeMaker reference

2019-03-11 Thread Jeff King
On Fri, Mar 08, 2019 at 05:27:36PM +0100, Johannes Schindelin wrote: > > Or perhaps GGG can learn to avoid 0/1 for a single-patch topic ;-) > > It is easier, and more consistent, to have a cover letter even then, for > things like the broader explanation of the context, the changes since the > pr

Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
Hi Everyone, I enabled self tests for Solaris. Solaris has some anemic utilities so I put /usr/gnu/bin first on-path. make test is resulting in a lot of: gmake -C templates SHELL_PATH='/bin/bash' PERL_PATH='/usr/bin/perl' gmake[1]: Entering directory `/export/home/jwalton/Build-Scripts/git-2.21

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-11 Thread Phillip Wood
On 11/03/2019 17:24, Elijah Newren wrote: On Mon, Mar 11, 2019 at 4:47 AM Duy Nguyen wrote: On Mon, Mar 11, 2019 at 6:16 PM Phillip Wood wrote: Hi Duy On 08/03/2019 09:57, Nguyễn Thái Ngọc Duy wrote: "git checkout" doing too many things is a source of confusion for many users (and it even

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Eric Sunshine
[cc:+Ævar] On Mon, Mar 11, 2019 at 4:32 PM Jeffrey Walton wrote: > I enabled self tests for Solaris. Solaris has some anemic utilities so > I put /usr/gnu/bin first on-path. The first question is if you are really running GNU 'sed'? My guess is "no, it's still picking up Solaris's 'sed'". > gma

Re: [PATCH v13 12/27] stash: convert drop and clear to builtin

2019-03-11 Thread Thomas Gummerer
On 03/11, Junio C Hamano wrote: > Thomas Gummerer writes: > > > Agreed, I'd be happy to keep the parameter there. Looking at your > > fork, you seem to have some WIP patches to introduce a UNUSED macro > > for parameters like this, which I don't think I've seen on the list > > yet (though I may

Re: [PATCH v13 18/27] stash: convert create to builtin

2019-03-11 Thread Thomas Gummerer
On 03/11, Junio C Hamano wrote: > Junio C Hamano writes: > > > Thomas Gummerer writes: > > > >> Subject: [PATCH 1/2] stash: pass pathspec as pointer > >> > >> Passing the pathspec by value is potentially confusing, as the copy is > >> only a shallow copy, so save the overhead of the copy, and pa

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
On Mon, Mar 11, 2019 at 5:15 PM Eric Sunshine wrote: > > [cc:+Ævar] > > On Mon, Mar 11, 2019 at 4:32 PM Jeffrey Walton wrote: > > I enabled self tests for Solaris. Solaris has some anemic utilities so > > I put /usr/gnu/bin first on-path. > > The first question is if you are really running GNU 's

Re: [PATCH v3 10/21] checkout: split part of it to new command 'switch'

2019-03-11 Thread Elijah Newren
On Mon, Mar 11, 2019 at 1:51 PM Phillip Wood wrote: > On 11/03/2019 17:24, Elijah Newren wrote: > > On Mon, Mar 11, 2019 at 4:47 AM Duy Nguyen wrote: > >> On Mon, Mar 11, 2019 at 6:16 PM Phillip Wood > >> wrote: > >>> On 08/03/2019 09:57, Nguyễn Thái Ngọc Duy wrote: > "git checkout" doing

[PATCH v2] stash: pass pathspec as pointer

2019-03-11 Thread Thomas Gummerer
Passing the pathspec by value is potentially confusing, as the copy is only a shallow copy, so save the overhead of the copy, and pass the pathspec struct as a pointer. In addition use copy_pathspec to copy the pathspec into rev.prune_data, so the copy is a proper deep copy, and owned by the revis

Possible race condition with git-rebase + .git/index.lock

2019-03-11 Thread Sergio Durigan Junior
Hi there, I've been bit by this bug many times, and always forget to report it here, but this time I finally remembered. The scenario is this: - I have a local repository which tracks the upstream of the project. - I have 120+ local commits. - Every week or so, I have to rebase my local commit

Re: [PATCH 2/2] built-in stash: handle :(glob) pathspecs again

2019-03-11 Thread Thomas Gummerer
On 03/11, Johannes Schindelin wrote: > Hi Junio, > > On Mon, 11 Mar 2019, Junio C Hamano wrote: > > > Yup. I think Thomas and Peff were also looking at the vicinity of > > this code wrt the pass-by-value-ness of ps parameter. Their fix > > need to also come on top of this (or combined together)

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Eric Sunshine
On Mon, Mar 11, 2019 at 05:43:55PM -0400, Jeffrey Walton wrote: > On Mon, Mar 11, 2019 at 5:15 PM Eric Sunshine wrote: > > On Mon, Mar 11, 2019 at 4:32 PM Jeffrey Walton wrote: > > > I enabled self tests for Solaris. Solaris has some anemic utilities so > > > I put /usr/gnu/bin first on-path. > >

Re: [PATCH v5 1/1] worktree add: sanitize worktree names

2019-03-11 Thread Jeff King
On Mon, Mar 11, 2019 at 04:24:13PM +0700, Duy Nguyen wrote: > > > I think this needs to be: > > > > > > strbuf_setlen(sanitized, sanitized->len - 1); > > > > > > to ensure that NUL-terminator ends up in the correct place if this "." > > > is the very last character in 'refname'. (Otherwise, th

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-11 Thread Eric Sunshine
On Mon, Mar 11, 2019 at 6:17 PM Sergio Durigan Junior wrote: > # git rebase origin/master > ... > Applying: commitX > Applying: commitY > Applying: commitZ > fatal: Unable to create '/home/xyz/dir1/dir2/.git/index.lock': File exists. > > The first thing I did was to check whether the i

Re: Possible race condition with git-rebase + .git/index.lock

2019-03-11 Thread Sergio Durigan Junior
On Monday, March 11 2019, Eric Sunshine wrote: > On Mon, Mar 11, 2019 at 6:17 PM Sergio Durigan Junior > wrote: >> # git rebase origin/master >> ... >> Applying: commitX >> Applying: commitY >> Applying: commitZ >> fatal: Unable to create '/home/xyz/dir1/dir2/.git/index.lock': File ex

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
On Mon, Mar 11, 2019 at 5:15 PM Eric Sunshine wrote: > > [cc:+Ævar] > > On Mon, Mar 11, 2019 at 4:32 PM Jeffrey Walton wrote: > > I enabled self tests for Solaris. Solaris has some anemic utilities so > > I put /usr/gnu/bin first on-path. > > The first question is if you are really running GNU 's

Re: Questions on GSoC 2019 Ideas

2019-03-11 Thread Matheus Tavares Bernardino
On Wed, Mar 6, 2019 at 7:17 AM Duy Nguyen wrote: > > On Wed, Mar 6, 2019 at 6:47 AM Matheus Tavares Bernardino > wrote: > > > > This exercise of estimating a good spot to gain performance with > > parallelism at git seems more difficult than I thought, firstly. Also, > > I'm not that familiar yet

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
On Mon, Mar 11, 2019 at 7:52 PM Jeffrey Walton wrote: > > On Mon, Mar 11, 2019 at 5:15 PM Eric Sunshine wrote: > > > > [cc:+Ævar] > > > > On Mon, Mar 11, 2019 at 4:32 PM Jeffrey Walton wrote: > > > I enabled self tests for Solaris. Solaris has some anemic utilities so > > > I put /usr/gnu/bin fi

Re: [PATCH v7 1/8] t7600: clean up 'merge --squash c3 with c7' test

2019-03-11 Thread Junio C Hamano
Denton Liu writes: > - { > - cat <<-EOF > + cat >expect <<-EOF && > Squashed commit of the following: > > $(git show -s c7) > @@ -242,8 +241,8 @@ test_expect_success 'merge --squash c3 with c7' ' > # Conflicts: > #

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
On Mon, Mar 11, 2019 at 6:28 PM Eric Sunshine wrote: > > On Mon, Mar 11, 2019 at 05:43:55PM -0400, Jeffrey Walton wrote: > > On Mon, Mar 11, 2019 at 5:15 PM Eric Sunshine > > wrote: > > > On Mon, Mar 11, 2019 at 4:32 PM Jeffrey Walton wrote: > > > > I enabled self tests for Solaris. Solaris has

[PATCH] upload-pack: fix sparse warnings

2019-03-11 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Jonathan, If you need to re-roll your 'jt/fetch-cdn-offload' branch, could you please squash this into the relevant patches. (The first hunk into commit a8d662e3da4 ("upload-pack: refactor reading of pack-objects out", 2019-03-08) and the second hunk into com

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
On Mon, Mar 11, 2019 at 9:07 PM Jeffrey Walton wrote: > > On Mon, Mar 11, 2019 at 6:28 PM Eric Sunshine wrote: > > > > On Mon, Mar 11, 2019 at 05:43:55PM -0400, Jeffrey Walton wrote: > > > On Mon, Mar 11, 2019 at 5:15 PM Eric Sunshine > > > wrote: > > > > On Mon, Mar 11, 2019 at 4:32 PM Jeffrey

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
On Mon, Mar 11, 2019 at 9:55 PM Jeffrey Walton wrote: > > On Mon, Mar 11, 2019 at 9:07 PM Jeffrey Walton wrote: > > > > On Mon, Mar 11, 2019 at 6:28 PM Eric Sunshine > > wrote: > > > > > > On Mon, Mar 11, 2019 at 05:43:55PM -0400, Jeffrey Walton wrote: > > > > On Mon, Mar 11, 2019 at 5:15 PM Er

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
On Mon, Mar 11, 2019 at 10:11 PM Jeffrey Walton wrote: > > On Mon, Mar 11, 2019 at 9:55 PM Jeffrey Walton wrote: > > > > On Mon, Mar 11, 2019 at 9:07 PM Jeffrey Walton wrote: > > > > > > On Mon, Mar 11, 2019 at 6:28 PM Eric Sunshine > > > wrote: > > > > > > > > On Mon, Mar 11, 2019 at 05:43:55

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Eric Sunshine
On Mon, Mar 11, 2019 at 10:11:41PM -0400, Jeffrey Walton wrote: > On Mon, Mar 11, 2019 at 9:55 PM Jeffrey Walton wrote: > > Oh man, you're using GNU make. I thought Git was using that anemic > > Posix Make. See attached. > > > > I think Solaris provides an older gawk. Is this an easier problem: >

[PATCH] sequencer: mark a file-local symbol as static

2019-03-11 Thread Ramsay Jones
Signed-off-by: Ramsay Jones --- Hi Denton, If you need to re-roll your 'dl/merge-cleanup-scissors-fix' branch, could you please squash this into the relevant patch (commit 9bcdf520cb ("sequencer.c: define get_config_from_cleanup", 2019-03-10)). I note also, that the get_config_from_cleanup()

Re: [PATCH] sequencer: mark a file-local symbol as static

2019-03-11 Thread Eric Sunshine
On Mon, Mar 11, 2019 at 10:53 PM Ramsay Jones wrote: > If you need to re-roll your 'dl/merge-cleanup-scissors-fix' branch, > could you please squash this into the relevant patch (commit 9bcdf520cb > ("sequencer.c: define get_config_from_cleanup", 2019-03-10)). > > /* note that we assume that clea

[PATCH] repack: enable bitmaps by default on bare repos

2019-03-11 Thread Eric Wong
Jeff King wrote: > On Sat, Mar 09, 2019 at 02:49:44AM +, Eric Wong wrote: > > It would make life easier for people new to hosting git servers > > (and hopefully reduce centralization :) > > I do think they're a net win for people hosting git servers. But if > that's the goal, I think at most

Re: Solaris and sed: Too many commands, last: s/\n//

2019-03-11 Thread Jeffrey Walton
On Mon, Mar 11, 2019 at 10:45 PM Eric Sunshine wrote: > > On Mon, Mar 11, 2019 at 10:11:41PM -0400, Jeffrey Walton wrote: > > On Mon, Mar 11, 2019 at 9:55 PM Jeffrey Walton wrote: > > > Oh man, you're using GNU make. I thought Git was using that anemic > > > Posix Make. See attached. > > > > > >

Re: [PATCH v7 5/8] merge: cleanup messages like commit

2019-03-11 Thread Junio C Hamano
Phillip Wood writes: >> -if (0 < option_edit) >> -strbuf_commented_addf(&msg, _(merge_editor_comment), >> comment_line_char); >> +if (0 < option_edit) { >> +strbuf_addch(&msg, '\n'); >> +if (cleanup_mode == COMMIT_MSG_CLEANUP_SCISSORS) >> +

Re: [PATCH v7 7/8] sequencer.c: define get_config_from_cleanup

2019-03-11 Thread Junio C Hamano
Denton Liu writes: > +struct cleanup_config_mapping { > +const char *config_value; > +enum commit_msg_cleanup_mode editor_cleanup; > +enum commit_msg_cleanup_mode no_editor_cleanup; > +}; Is this code using 4-space indent? Please don't. Also, I found that Eric's comment on naming g

Re: [PATCH v5 1/1] worktree add: sanitize worktree names

2019-03-11 Thread Junio C Hamano
Jeff King writes: > Another option _is_ to actually make it reversible. I.e., use "%2e" > instead of ".", which would also necessitate replacing "%". I don't know > if that has a huge value for this use-case, but it's a nice property > that two sanitized names can't collide (unless they originall

Re: [PATCH v5 1/1] worktree add: sanitize worktree names

2019-03-11 Thread Junio C Hamano
Johannes Schindelin writes: >> +static int check_refname_component(const char *refname, int *flags, >> + struct strbuf *sanitized) >> { >> const char *cp; >> char last = '\0'; >> +size_t component_start; > > This variable is uninitialized. It is then..

Re: [PATCH v2] stash: pass pathspec as pointer

2019-03-11 Thread Junio C Hamano
Thomas Gummerer writes: >> Good catch on both acconts. I'll send a new patch soon, adding the >> clear_pathspec() calls and rebasing it on top of Dscho's fix. > > Here it is. Thanks for the review of the first round Junio! > > This is on top of Dscho's series at > applied to ps/stash-in-c. Th

  1   2   >