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

2019-03-10 Thread Eric Sunshine
On Fri, Mar 8, 2019 at 5: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 What is the ",," thing? > the index.

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

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

2019-03-08 Thread Nguyễn Thái Ngọc Duy
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 can simplify it by taking a way the ref, so that we can write git