Re: [PATCH v4 12/26] checkout: split part of it to new command 'switch'

2019-03-18 Thread Elijah Newren
On Sun, Mar 17, 2019 at 5:50 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 timers sometimes). To remedy that, the > command will be split into two new ones: switch and restore. The good > old "git checkout"

Re: [PATCH v2] unpack-trees: fix oneway_merge accidentally carry over stage index

2019-03-18 Thread Elijah Newren
On Mon, Mar 18, 2019 at 4:38 AM Nguyễn Thái Ngọc Duy wrote: > > Phillip found out that 'git checkout -f ' does not restore > conflict/unmerged files correctly. All tracked files should be taken > from and all non-zero stages removed. Most of this is true, > except that the final file could be in

Re: [PATCH] t4038-diff-combined: quote paths with whitespace

2019-03-18 Thread Elijah Newren
On Sun, Mar 17, 2019 at 4:02 PM Todd Zullinger wrote: > > d76ce4f734 ("log,diff-tree: add --combined-all-paths option", > 2019-02-07) added tests for files containing tabs. > > When the tests are run with bash, the lack of quoting during the file > setup causes 'ambiguous redirect' errors. > > Sig

Re: straw poll: git merge conference location

2019-03-14 Thread Elijah Newren
On Wed, Mar 13, 2019 at 1:58 PM Jeff King wrote: > > I took an informal poll at the last contributor summit in Brussels, but > that obviously has some bias. So I'll ask here: do you have a location > preference for a Git Merge conference (and associated contributor > summit) next March? > > We're

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

2019-03-14 Thread Elijah Newren
On Thu, Mar 14, 2019 at 12:23 AM Junio C Hamano wrote: > > Elijah Newren writes: > > >> I think sometimes a 3-way merge creates marker conflicts in file, and > >> this does not look easy to reverse when switching back. If it's true > >> and we can det

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

2019-03-14 Thread Elijah Newren
On Thu, Mar 14, 2019 at 2:18 AM Duy Nguyen wrote: > > On Tue, Mar 12, 2019 at 01:28:35PM -0400, Eric Sunshine wrote: > > > > Again, not much of a datapoint, but I do use --orphan periodically. > > > > The idea of "fixing" the behavior so that --orphan starts with a clean > > > > slate is certainly

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

2019-03-13 Thread Elijah Newren
On Wed, Mar 13, 2019 at 8:29 PM Duy Nguyen wrote: > > On Mon, Mar 11, 2019 at 6:16 PM Phillip Wood > wrote: > > > +-m:: > > > +--merge:: > > > + If you have local modifications to one or more files that are > > > + different between the current branch and the branch to which > > > +

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

2019-03-13 Thread Elijah Newren
On Wed, Mar 13, 2019 at 4:05 AM Duy Nguyen wrote: > > On Tue, Mar 12, 2019 at 12:54 AM Elijah Newren wrote: > > > +--progress:: > > > +--no-progress:: > > > + Progress status is reported on the standard error stream > > > + by default

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

2019-03-12 Thread Elijah Newren
On Tue, Mar 12, 2019 at 12:32 PM Sergio Durigan Junior wrote: > > On Tuesday, March 12 2019, Elijah Newren wrote: > > > On Tue, Mar 12, 2019 at 9:48 AM Sergio Durigan Junior > > wrote: > >> On Tuesday, March 12 2019, Duy Nguyen wrote: > >> > >>

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

2019-03-12 Thread Elijah Newren
On Tue, Mar 12, 2019 at 9:48 AM Sergio Durigan Junior wrote: > On Tuesday, March 12 2019, Duy Nguyen wrote: > > > On Tue, Mar 12, 2019 at 5:18 AM Sergio Durigan Junior > > wrote: > >> This works without problems most of the time (well, usually there are > >> conflicts and all, but that's a burden

Re: why does "git revert" commit even if i try to bail with ":q!"?

2019-03-12 Thread Elijah Newren
On Tue, Mar 12, 2019 at 11:21 AM Robert P. J. Day wrote: > > On Tue, 12 Mar 2019, Kevin Daudt wrote: > > ... snip ... > > > The only reason why `:q!` works just for comitting is because there > > is no default message, so the final message ends up empty. > > > > When you do things like git revert

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

2019-03-12 Thread Elijah Newren
On Tue, Mar 12, 2019 at 4:58 AM Duy Nguyen wrote: > On Tue, Mar 12, 2019 at 12:25 AM 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

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

2019-03-12 Thread Elijah Newren
On Tue, Mar 12, 2019 at 8:37 AM Eric Sunshine wrote: > > On Tue, Mar 12, 2019 at 8:19 AM Duy Nguyen wrote: > > On Tue, Mar 12, 2019 at 3:51 AM Phillip Wood > > wrote: > > > I tend to agree with this but that's probably because I don't really use > > > checkout -B. I'm not sure if it's widely us

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

2019-03-12 Thread Elijah Newren
On Tue, Mar 12, 2019 at 4:06 AM Phillip Wood wrote: > > Hi Elijah > > On 11/03/2019 17:54, Elijah Newren wrote: > > A few other comments that I thought of while responding elsewhere in > > the thread that didn't make sense to include elsewhere... > > > > O

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

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

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 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: > > > > > &

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: [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: [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: 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 11/11] doc: promote "git restore"

2019-03-09 Thread Elijah Newren
On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > > The new command "git restore" (together with "git switch") are added > to avoid the confusion of one-command-do-all "git checkout" for new > users. They are also helpful to avoid ambiguation context. s/ambiguation/ambiguous/ or s/ambi

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

2019-03-09 Thread Elijah Newren
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 later. s/give/giving/ I'm slightly worried that due to using --

Re: [PATCH v1 08/11] restore: support --patch

2019-03-09 Thread Elijah Newren
On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > > git-restore is different from git-checkout that it only restores the > worktree by default, not both worktree and index. add--interactive > needs some update to support this mode. Nice! That removes my frowny face from a few patches

Re: [PATCH v1 07/11] restore: default to --source=HEAD when only --index is specified

2019-03-09 Thread Elijah Newren
On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > > "git restore --index" does not make much sense since we're told to > restore the index from the (by default) index. Set default source to > HEAD in this case. This is basically the same as "git reset -- ". Can I suggest a slight rewor

Re: [PATCH v1 06/11] restore: add --worktree and --index

2019-03-09 Thread Elijah Newren
On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > > 'git checkout ' updates both index and > worktree. But updating the index when you want to restore worktree > files is non-intuitive. The index contains the data ready for the next > commit, and there's no indication that the user wil

Re: [PATCH v1 04/11] restore: disable overlay mode by default

2019-03-09 Thread Elijah Newren
On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > > Overlay mode is considered confusing when the command is about > restoring files on worktree. Disable it by default. The user can still > turn it on, or use 'git checkout' which still has overlay mode on by > default. > > While at ther

Re: [PATCH v1 03/11] restore: make pathspec mandatory

2019-03-09 Thread Elijah Newren
On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > > "git restore" without arguments does not make much sense when > it's about restoring files (what files now?). We could default to > either > > git restore . > > or > > git restore :/ > > Neither is intuitive. Make the user alwa

Re: [PATCH v1 01/11] checkout: split part of it to new command 'restore'

2019-03-09 Thread Elijah Newren
On Sat, Mar 9, 2019 at 4:16 AM Duy Nguyen wrote: > On Sat, Mar 9, 2019 at 1:01 AM Elijah Newren wrote: > > > +-q:: > > > +--quiet:: > > > + Quiet, suppress feedback messages. > > > + > > > +--progress:: > > > +--no-progress:: > &

Re: [PATCH v1 02/11] restore: take tree-ish from --source option instead

2019-03-09 Thread Elijah Newren
On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > > This is another departure from 'git checkout' syntax, which uses -- to > separate ref and pathspec. The observation is restore (or "git > checkout ,, ") is most often used to restore some files from > the index. If this is correct, we

Re: What's cooking in git.git (Mar 2019, #01; Wed, 6)

2019-03-09 Thread Elijah Newren
Hi, On Sat, Mar 9, 2019 at 9:29 AM Thomas Gummerer wrote: > > On 03/07, Duy Nguyen wrote: > > On Thu, Mar 7, 2019 at 7:34 PM Philip Oakley wrote: > > > > > > On 06/03/2019 09:44, Duy Nguyen wrote: > > > > On Wed, Mar 6, 2019 at 8:34 AM Junio C Hamano wrote: > > > >> * tg/checkout-no-overlay (20

Re: [PATCH v1 01/11] checkout: split part of it to new command 'restore'

2019-03-08 Thread Elijah Newren
Thanks for working on this; overall looks really good. I've got a few comments here and there on the wording and combinations of options... On Fri, Mar 8, 2019 at 2:17 AM Nguyễn Thái Ngọc Duy wrote: > +SYNOPSIS It might be worth adding some words somewhere to differentiate between `reset` and `

Re: [RFC PATCH 0/5] Fix some fast-import parsing issues

2019-03-08 Thread Elijah Newren
Hi, On Wed, Feb 20, 2019 at 2:58 PM Elijah Newren wrote: > > I found a few issues with parsing in fast-import (dating back to > I've cc'ed the relevant folks, and have a few patches that fix the > issue and I think make the parser more robust against future issues in &

Re: fast-import on existing branches

2019-03-08 Thread Elijah Newren
Hi Norbert, On Fri, Mar 8, 2019 at 2:51 AM Norbert Nemec wrote: > > Hi there, > > I've struggled for quite some time to sort out documented, intended and > actual behavior of git fast-import. Unless I'm completely mistaken, it seems > to be a straightforward bug, but if that is the case, I am r

Re: [BUG] All files in folder are moved when cherry-picking commit that moves fewer files

2019-03-06 Thread Elijah Newren
On Tue, Mar 5, 2019 at 8:43 PM Junio C Hamano wrote: > Elijah Newren writes: > > > Note that there is also a third possibility here: > > > > C) There are different answers depending on the context and content > > that cannot be determined by git,

Re: [BUG] All files in folder are moved when cherry-picking commit that moves fewer files

2019-03-05 Thread Elijah Newren
On Sat, Mar 2, 2019 at 5:33 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > Whatever we choose for the default could be tweaked by some new option > > (e.g. make it less noisy or don't mark such paths as conflicted if the > > user has explicitly stated

Re: [BUG] All files in folder are moved when cherry-picking commit that moves fewer files

2019-03-02 Thread Elijah Newren
Hi Junio, On Thu, Feb 28, 2019 at 6:52 PM Junio C Hamano wrote: > > As you know that I've always been skeptical to this rename-directory > business, this probably won't come as a surprise, but I seriously > think directory renames should be made opt-in, and as a separate > option, making the opti

Re: [BUG] All files in folder are moved when cherry-picking commit that moves fewer files

2019-02-27 Thread Elijah Newren
On Wed, Feb 27, 2019 at 8:40 AM Jeff King wrote: > > On Wed, Feb 27, 2019 at 08:02:35AM -0800, Elijah Newren wrote: > > > > > I have found what I suspect to be a bug, or at least not desirable > > > > behavior in my case. In one branch, I have moved all files

Re: [BUG] All files in folder are moved when cherry-picking commit that moves fewer files

2019-02-27 Thread Elijah Newren
Hi, On Wed, Feb 27, 2019 at 6:30 AM Phillip Wood wrote: > > Hi Linus > > On 27/02/2019 12:47, Linus Nilsson wrote: > > Hi > > > > I have found what I suspect to be a bug, or at least not desirable behavior > > in my case. In one branch, I have moved all files in a directory to another > > direc

[PATCH v3] merge-options.txt: correct wording of --no-commit option

2019-02-21 Thread Elijah Newren
ast-forward cases as well and suggest using --no-ff with --no-commit if the point is to ensure that the merge stops before completing. Reported-by: Ulrich Windl Signed-off-by: Elijah Newren --- Changes since v2: - Small wording change suggested by Junio (s/do not need to/do not/) Documentati

Re: [PATCH v4 5/8] git-rebase, sequencer: extend --quiet option for the interactive machinery

2019-02-21 Thread Elijah Newren
Hi Phillip, On Wed, Feb 20, 2019 at 3:00 AM Phillip Wood wrote: > On 22/01/2019 20:39, Junio C Hamano wrote: > > Elijah Newren writes: > > > >> Also, I have a fuzzy memory of discussing a very similar case with > >> some rebase-oriented option and its

[RFC PATCH 1/5] t9300: demonstrate bug with get-mark and empty orphan commits

2019-02-20 Thread Elijah Newren
Signed-off-by: Elijah Newren --- Documentation/git-fast-import.txt | 7 +- t/t9300-fast-import.sh| 37 +++ 2 files changed, 43 insertions(+), 1 deletion(-) diff --git a/Documentation/git-fast-import.txt b/Documentation/git-fast-import.txt index

[RFC PATCH 4/5] fast-import: only allow cat-blob requests where it makes sense

2019-02-20 Thread Elijah Newren
a case (it would be trivial to use cat-blob before the filemodify instead), but since there is evidence this was used, for backwards compatibility let's support that case too. Signed-off-by: Elijah Newren --- Documentation/git-fast-import.txt | 7 --- fast-import.c |

[RFC PATCH 0/5] Fix some fast-import parsing issues

2019-02-20 Thread Elijah Newren
e cc'ed the relevant folks, and have a few patches that fix the issue and I think make the parser more robust against future issues in a way that I think is safe enough for backward compatibility, but "backward compatible enough" might concern some folks; if so, please take a look at pa

[RFC PATCH 2/5] git-fast-import.txt: fix wording about where ls command can appear

2019-02-20 Thread Elijah Newren
The docs claimed `ls` commands could appear almost anywhere, but the code told a different story. Modify the docs to match the code. Signed-off-by: Elijah Newren --- Documentation/git-fast-import.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git-fast

[RFC PATCH 5/5] fast-import: fix erroneous handling of get-mark with empty orphan commits

2019-02-20 Thread Elijah Newren
her, trying to allow this command anywhere caused parsing bugs. Fix the parsing problems by only allowing get-mark commands to appear when other commands have completed. Signed-off-by: Elijah Newren --- Documentation/git-fast-import.txt | 4 fast-import.c | 8 ++

[RFC PATCH 3/5] fast-import: check most prominent commands first

2019-02-20 Thread Elijah Newren
s added, it was stuck near the top of the list, with no rationale for that particular location. Move it down to later to appease my Tourette's-like internal twitching that its former location was causing. Signed-off-by: Elijah Newren --- fast-import.c | 4 ++-- 1 file changed, 2 insertions(+)

Re: [PATCH 6/8] checkout: add --cached option

2019-02-19 Thread Elijah Newren
On Tue, Feb 19, 2019 at 2:36 PM Junio C Hamano wrote: > > Elijah Newren writes: > > >> As long as worktree-only mode does not lose track of a > >> previously-untracked path in the index (perhaps use the i-t-a bit), > >> I do not have a strong objection agains

Re: [PATCH v2] merge-options.txt: correct wording of --no-commit option

2019-02-19 Thread Elijah Newren
On Tue, Feb 19, 2019 at 11:32 AM Junio C Hamano wrote: > Elijah Newren writes: > > > +With --no-commit perform the merge and stop just before creating > > +a merge commit, to give the user a chance to inspect and further > > +tweak the merge result before committing. &g

Re: [PATCH 6/8] checkout: add --cached option

2019-02-19 Thread Elijah Newren
On Tue, Feb 19, 2019 at 11:07 AM Junio C Hamano wrote: > > Elijah Newren writes: > > > Overall this looks good, but there's just one part that confuses me. > > Here you seem to suggest that if you pass --source but neither --index > > or --worktree that both th

Re: [PATCH 6/8] checkout: add --cached option

2019-02-19 Thread Elijah Newren
On Tue, Feb 19, 2019 at 11:03 AM Junio C Hamano wrote: > * --no-index --worktree ... > >Update only the working tree files without touching the index >(new feature that cannot be done with the current Git, although >"cat-file -p >path" may be close enough at times), from the index I

Re: [PATCH 6/8] checkout: add --cached option

2019-02-19 Thread Elijah Newren
On Tue, Feb 19, 2019 at 11:10 AM Junio C Hamano wrote: > > Junio C Hamano writes: > > > I am getting the impression that to save typing, you would want to > > make "--index --worktree" the default (i.e. among the above, only > > --no-index and --no-worktree need to be spelled explicitly), but > >

[PATCH v2] merge-options.txt: correct wording of --no-commit option

2019-02-19 Thread Elijah Newren
ast-forward cases as well and suggest using --no-ff with --no-commit if the point is to ensure that the merge stops before completing. Reported-by: Ulrich Windl Signed-off-by: Elijah Newren --- Changes since v1: - Tweaked commit message Documentation/merge-options.txt | 12 +--

Re: [PATCH 6/8] checkout: add --cached option

2019-02-19 Thread Elijah Newren
Hi Duy, On Mon, Feb 18, 2019 at 8:21 PM Duy Nguyen wrote: > > On Sat, Feb 2, 2019 at 12:57 AM Junio C Hamano wrote: > > > > Duy Nguyen writes: > > > > > Of course we could just do --index and --worktree, each option > > > restores the respective part. Then it's combinable (and extensible in > >

[no subject]

2019-02-18 Thread Elijah Newren
Hi Ulrich, Sorry for the late reply... On Tue, Jan 22, 2019 at 11:04 PM Ulrich Windl wrote: > >>> Elijah Newren schrieb am 22.01.2019 um 22:29 in > Nachricht > > On Tue, Jan 22, 2019 at 1:05 PM Ulrich Windl > > wrote: > >> > >> Using git versio

Re: [Bug report] git diff stat shows unrelated diff

2019-02-15 Thread Elijah Newren
On Fri, Feb 15, 2019 at 10:52 AM Denton Liu wrote: > > On Thu, Feb 14, 2019 at 02:10:53PM -0800, Junio C Hamano wrote: > > Elijah Newren writes: > > > > > The only thing I seem to be able to retain is the following: "git > > > diff D..E is totally usel

Re: [Bug report] git diff stat shows unrelated diff

2019-02-15 Thread Elijah Newren
Hi Viresh, On Thu, Feb 14, 2019 at 10:40 PM Viresh Kumar wrote: > > On 14-02-19, 13:23, Elijah Newren wrote: > > I think you're getting tripped up by double-dot vs triple-dot with > > diff being different than log: > > > > `git diff D..E` means the same thi

Re: [Bug report] git diff stat shows unrelated diff

2019-02-14 Thread Elijah Newren
Hi, On Thu, Feb 14, 2019 at 11:35 AM Viresh Kumar wrote: > > Hello, > > I am not sure if it is a bug or not, but the output I got wasn't what > I was looking for. And so looking for some help. I was looking to send > pull request [1] to PM maintainer and was generating the request > against his t

[PATCH] git-rebase.txt: update to reflect merge now implemented on sequencer

2019-02-14 Thread Elijah Newren
Signed-off-by: Elijah Newren --- Documentation/git-rebase.txt | 2 -- 1 file changed, 2 deletions(-) diff --git a/Documentation/git-rebase.txt b/Documentation/git-rebase.txt index daa16403ec..619303adbc 100644 --- a/Documentation/git-rebase.txt +++ b/Documentation/git-rebase.txt @@ -554,8 +554,6

Re: [PATCH] docs/git-rebase: Remove redundant entry in incompatible options list.

2019-02-14 Thread Elijah Newren
* --exec > * --keep-empty > - * --autosquash > * --edit-todo > * --root when used in combination with --onto > > -- > 2.20.1 Oops; thanks for catching my mistake. Reviewed-by: Elijah Newren

Re: GSoC 2019: Git's application submitted

2019-02-13 Thread Elijah Newren
On Sun, Feb 10, 2019 at 9:51 PM Оля Тележная wrote: > > > It would be nice to have a few more project ideas. > > I am not sure I have additional ideas for 3-month project for the intern, but > > > https://git.github.io/SoC-2019-Ideas/ currently lists only 2 possible > > projects: > > > > - Unify r

Re: [PATCH] unpack-trees.c: fix writing "link" index ext with null base oid

2019-02-11 Thread Elijah Newren
On Sat, Feb 9, 2019 at 3:23 AM Nguyễn Thái Ngọc Duy wrote: > > Since commit 7db118303a (unpack_trees: fix breakage when o->src_index != > o->dst_index - 2018-04-23) and changes in merge code to use separate > index_state for source and destination, when doing a merge with split > index activated,

Re: New command/tool: git filter-repo

2019-02-11 Thread Elijah Newren
Hi Dscho, On Fri, Feb 8, 2019 at 12:13 PM Johannes Schindelin wrote: > > Hi Ævar, > > On Fri, 8 Feb 2019, Ævar Arnfjörð Bjarmason wrote: > > > [...] > > > > But perhaps there's ways we can in advance deal with a potential > > future breaking API change. E.g. some Pythonic way of versioning th

Re: New command/tool: git filter-repo

2019-02-11 Thread Elijah Newren
Hi Ævar, On Fri, Feb 8, 2019 at 10:53 AM Ævar Arnfjörð Bjarmason wrote: > > On Thu, Jan 31 2019, Elijah Newren wrote: > > > What's the future? (Core command of git.git? place it in contrib? keep it > > in a separate repo?) I'm hoping to discuss that at the co

Re: [PATCH v5 1/2] log,diff-tree: add --combined-all-paths option

2019-02-07 Thread Elijah Newren
On Thu, Feb 7, 2019 at 8:00 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > +For `-c` and `--cc`, only the destination or final path is shown even > > +if the file was renamed on any side of history. With > > +`--combined-all-paths`, the name of the p

Re: [PATCH v5 2/2] squash! log,diff-tree: add --combined-all-paths option

2019-02-07 Thread Elijah Newren
On Thu, Feb 7, 2019 at 8:14 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > + for (i = 0; i < num_parent; i++) { > > + switch (elem->parent[i].status) { > > + case DIFF_STATUS_COPIED: > > +

Re: New command/tool: git filter-repo

2019-02-07 Thread Elijah Newren
Hi, On Thu, Jan 31, 2019 at 12:57 AM Elijah Newren wrote: > git-filter-repo[1], a filter-branch-like tool for rewriting repository > history, is ready for more widespread testing and feedback. The rough Someone at the Contributor Summit (Michael Haggerty perhaps?) asked me about perfo

[PATCH v5 1/2] log,diff-tree: add --combined-all-paths option

2019-02-07 Thread Elijah Newren
y.c fuey.c phooey.c Further, in patch format, this changes the from/to headers so that instead of just having one "from" header, we get one for each parent. For example, instead of having --- a/phooey.c +++ b/phooey.c we would see --- a/fooey.c --- a/fuey.c +++ b/phooey.c Signed-o

[PATCH v5 0/2] add --combined-all-paths option to log and diff-tree

2019-02-07 Thread Elijah Newren
com/ * Micro fixes: * Renamed --combined-all-names to --combined-all-paths * Fixed formatting error (missed '+') in diff-generate-patch.txt * Marked tests which used tabs in filenames with FUNNYNAMES prereq * Added tests that didn't depend on FUNNYNAMES Elijah Newren (2):

[PATCH v5 2/2] squash! log,diff-tree: add --combined-all-paths option

2019-02-07 Thread Elijah Newren
This also adds "rename from " and "copy from " extended headers when renames or copies are involved. Signed-off-by: Elijah Newren --- Documentation/diff-generate-patch.txt | 7 +++ combine-diff.c| 15 +++ 2 files changed, 18 insert

Re: [PATCH v4] log,diff-tree: add --combined-all-names option

2019-02-07 Thread Elijah Newren
On Thu, Feb 7, 2019 at 2:28 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > diff --git a/Documentation/diff-generate-patch.txt > > b/Documentation/diff-generate-patch.txt > > index 231105cff4..69cb3b0349 100644 > > --- a/Documentation/diff-generate-

Re: [PATCH v4] log,diff-tree: add --combined-all-names option

2019-02-07 Thread Elijah Newren
On Thu, Feb 7, 2019 at 3:31 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > Now, the question: In addition to the two "from" headers, how many > > "to" headers do we emit? In particular, do we emit both a "copied to > > F" and a

Re: [PATCH v4] log,diff-tree: add --combined-all-names option

2019-02-07 Thread Elijah Newren
On Thu, Feb 7, 2019 at 12:25 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > I think "copy from" and "rename from" should be relatively > > straightforward. However, in a combined diff, we could have both a > > modified status, a re

Re: [PATCH v4] log,diff-tree: add --combined-all-names option

2019-02-07 Thread Elijah Newren
On Tue, Feb 5, 2019 at 12:39 PM Junio C Hamano wrote: > > Elijah Newren writes: > > >> > Further, in patch format, this changes the from/to headers so that > >> > instead of just having one "from" header, we get one for each parent. > >> &g

Re: [PATCH v4] log,diff-tree: add --combined-all-names option

2019-02-05 Thread Elijah Newren
Hi Dscho, On Tue, Feb 5, 2019 at 1:48 AM Johannes Schindelin wrote: > > Hi Elijah, > > On Mon, 4 Feb 2019, Elijah Newren wrote: > > > The combined diff format for merges will only list one filename, even if > > rename or copy detection is active. For example, with r

Re: [PATCH v4] log,diff-tree: add --combined-all-names option

2019-02-05 Thread Elijah Newren
On Mon, Feb 4, 2019 at 1:20 PM Junio C Hamano wrote: > > Elijah Newren writes: > > There is one place that says combined-all-paths, and everywhere else > it says combined-all-names. The former is probably techincally more > correct, I think ;-) Looks like I had a mixture o

[PATCH v4] log,diff-tree: add --combined-all-names option

2019-02-04 Thread Elijah Newren
y.c fuey.c phooey.c Further, in patch format, this changes the from/to headers so that instead of just having one "from" header, we get one for each parent. For example, instead of having --- a/phooey.c +++ b/phooey.c we would see --- a/fooey.c --- a/fuey.c +++ b/phooey.c Signed-o

Re: Contributor Summit Topics and Logistics

2019-02-04 Thread Elijah Newren
Hi Jakub, On Sat, Feb 2, 2019 at 4:39 AM Jakub Narebski wrote: > I have noticed a little 'recording' indicator; would recorded session > (video or audio only) be made available at some point in time? Did > anyone take minutes, or take notes (for example of the Summit agenda > created at the star

Re: Comparing rebase --am with --interactive via p3400

2019-02-01 Thread Elijah Newren
Hi Dscho, On Thu, Jan 31, 2019 at 10:04 PM Johannes Schindelin wrote: > > Hi Elijah, > > as discussed at the Contributors' Summit, I ran p3400 as-is (i.e. with the > --am backend) and then with --keep-empty to force the interactive backend > to be used. Here are the best of 10, on my relatively p

Re: New command/tool: git filter-repo

2019-01-31 Thread Elijah Newren
Hi Roberto, First of all, thanks for the feedback, and for the awesome work on BFG repo filter! On Fri, Feb 1, 2019 at 12:36 AM Roberto Tyley wrote: > > On Thu, 31 Jan 2019 at 22:37, Elijah Newren wrote: > > On Thu, Jan 31, 2019 at 8:09 PM Junio C Hamano wrote: > > >

Re: New command/tool: git filter-repo

2019-01-31 Thread Elijah Newren
On Thu, Jan 31, 2019 at 9:57 AM Elijah Newren wrote: > > Hi everyone, > > git-filter-repo[1], a filter-branch-like tool for rewriting repository > history, is ready for more widespread testing and feedback. ... > What's the future? (Core command of git.git? place it in c

Re: New command/tool: git filter-repo

2019-01-31 Thread Elijah Newren
On Thu, Jan 31, 2019 at 8:09 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > git-filter-repo[1], a filter-branch-like tool for rewriting repository > > history, is ready for more widespread testing and feedback. The rough > > edges I previously mentioned

New command/tool: git filter-repo

2019-01-31 Thread Elijah Newren
Hi everyone, git-filter-repo[1], a filter-branch-like tool for rewriting repository history, is ready for more widespread testing and feedback. The rough edges I previously mentioned have been fixed, and it has several useful features already, though more development work is ongoing (docs are a b

[PATCH v5 6/8] git-legacy-rebase: simplify unnecessary triply-nested if

2019-01-28 Thread Elijah Newren
giving us the following form: if incompatible_opts: if interactive: show_error_about_interactive_and_am_incompatibilities if rebase-merge: show_error_about_merge_and_am_incompatibilities Acked-by: Johannes Schindelin Signed-off-by: Elijah Newren --- git-legacy-rebase.sh | 20

[PATCH v5 8/8] rebase: implement --merge via the interactive machinery

2019-01-28 Thread Elijah Newren
now REBASE-i. Acked-by: Johannes Schindelin Signed-off-by: Elijah Newren --- .gitignore| 1 - Documentation/git-rebase.txt | 17 +-- Makefile | 1 - builtin/rebase.c | 15 ++- git-legacy-rebase.sh | 43

[PATCH v5 3/8] t5407: add a test demonstrating how interactive handles --skip differently

2019-01-28 Thread Elijah Newren
inery even though we have no empty commits). A subsequent commit will remove the inconsistency in --skip handling. Acked-by: Johannes Schindelin Signed-off-by: Elijah Newren --- t/t5407-post-rewrite-hook.sh | 31 +++ 1 file changed, 31 insertions(+) diff --git a/

[PATCH v5 7/8] rebase: define linearization ordering and enforce it

2019-01-28 Thread Elijah Newren
turning on topological sorting is actually a performance improvement: by way of comparison, turning on --topo-order made fast-export faster (see https://public-inbox.org/git/20090211135640.ga19...@coredump.intra.peff.net/). Acked-by: Johannes Schindelin Signed-off-by: Elijah Newren --- git-

[PATCH v5 5/8] git-rebase, sequencer: extend --quiet option for the interactive machinery

2019-01-28 Thread Elijah Newren
presence of a "verbose" file in the state_dir, while the other was signalled by the contents of a "quiet" file was just weirdly inconsistent. (This inconsistency pre-dated the rewrite into C.) Make them consistent by having them both key off the presence of the file. Acked-by

[PATCH v5 4/8] am, rebase--merge: do not overlook --skip'ed commits with post-rewrite

2019-01-28 Thread Elijah Newren
treat it as an empty commit trivially squashed into its parent. This brings the rebase--am and rebase--merge backends in sync with the behavior of the interactive rebase backend. Acked-by: Johannes Schindelin Signed-off-by: Elijah Newren --- builtin/am.c | 9 + git-r

[PATCH v5 2/8] rebase: fix incompatible options error message

2019-01-28 Thread Elijah Newren
y thoroughly in the rebase man page (in the "Incompatible Options" section, with multiple links throughout the document), and since I expect this list to change over time, just simplify the error message. Acked-by: Johannes Schindelin Signed-off-by: Elijah Newren --- builtin/rebase.c

[PATCH v5 0/8] Reimplement rebase --merge via interactive machinery

2019-01-28 Thread Elijah Newren
f.bet/) Elijah Newren (8): rebase: make builtin and legacy script error messages the same rebase: fix incompatible options error message t5407: add a test demonstrating how interactive handles --skip differently am, rebase--merge: do not overlook --skip'ed commits with post-rew

[PATCH v5 1/8] rebase: make builtin and legacy script error messages the same

2019-01-28 Thread Elijah Newren
t;error:" prefix from the builtin version of rebase, and change the prefix from "error:" to "fatal:" in the legacy script to match. Acked-by: Johannes Schindelin Signed-off-by: Elijah Newren --- builtin/rebase.c | 10 +- git-legacy-rebase.sh | 12 ++-

[PATCH v3] log,diff-tree: add --combined-all-names option

2019-01-26 Thread Elijah Newren
y.c fuey.c phooey.c Further, in patch format, this changes the from/to headers so that instead of just having one "from" header, we get one for each parent. For example, instead of having --- a/phooey.c +++ b/phooey.c we would see --- a/fooey.c --- a/fuey.c +++ b/phooey.c Signed-o

Re: [PATCH] log,diff-tree: add --combined-with-paths options for merges with renames

2019-01-26 Thread Elijah Newren
On Fri, Jan 25, 2019 at 2:21 PM Junio C Hamano wrote: > > Elijah Newren writes: > > > Also, my first version of the patch actually showed all names, on all > > lines, but I found the heavy repetition really annoying, and not in > > keeping with how non-merge commits

Re: [PATCH v2] log,diff-tree: add --combined-with-paths options for merges with renames

2019-01-26 Thread Elijah Newren
On Fri, Jan 25, 2019 at 11:51 AM Eric Sunshine wrote: > > On Fri, Jan 25, 2019 at 12:52 PM Elijah Newren wrote: > > On Fri, Jan 25, 2019 at 9:41 AM Derrick Stolee wrote: > > > On 1/25/2019 11:54 AM, Elijah Newren wrote: > > > > + printf "0f9645804ebb

Re: [PATCH] log,diff-tree: add --combined-with-paths options for merges with renames

2019-01-25 Thread Elijah Newren
On Fri, Jan 25, 2019 at 11:29 AM Junio C Hamano wrote: > > Elijah Newren writes: > > > The raw diff format for merges with -c or --cc will only list one > > filename, even if rename detection is active and a rename was detected > > for the given path. Examples: >

Re: [PATCH v2] log,diff-tree: add --combined-with-paths options for merges with renames

2019-01-25 Thread Elijah Newren
On Fri, Jan 25, 2019 at 9:41 AM Derrick Stolee wrote: > > On 1/25/2019 11:54 AM, Elijah Newren wrote: > > +test_expect_success '--combined-with-paths works with -z as well' ' > > + printf "0f9645804ebb04cc3eef91f799eb7fb

[PATCH v2] log,diff-tree: add --combined-with-paths options for merges with renames

2019-01-25 Thread Elijah Newren
ned-off-by: Elijah Newren --- Differences since v1: added a testcase, with and without -z Documentation/diff-format.txt | 23 +--- Documentation/git-diff-tree.txt| 9 +-- Documentation/rev-list-options.txt | 5 combine-diff.c

Re: [PATCH] log,diff-tree: add --combined-with-paths options for merges with renames

2019-01-25 Thread Elijah Newren
Hi, On Fri, Jan 25, 2019 at 6:45 AM Derrick Stolee wrote: > > On 1/24/2019 11:46 AM, Elijah Newren wrote: > > As an alternative, I considered perhaps trying to sell it as a bugfix > > (how often do people use -M, -c, and --raw together and have renames > > in merge comm

<    1   2   3   4   5   6   7   8   9   10   >