Re: Feedback on git-restore

2019-05-18 Thread Philip Oakley
Hi Duy, On 16/05/2019 13:44, Duy Nguyen wrote: On Thu, May 16, 2019 at 7:12 PM Philip Oakley wrote: Maybe we need a `git index` command to make it far more visible to average users (or `git staging-area --show`, with a --cached option ;-). Not commenting on the other parts (and also Junio's m

Re: Feedback on git-restore

2019-05-16 Thread Duy Nguyen
On Thu, May 16, 2019 at 7:12 PM Philip Oakley wrote: > Maybe we need a `git index` command to make it far more visible to > average users (or `git staging-area --show`, with a --cached option ;-). Not commenting on the other parts (and also Junio's mail) since I still need more time to process.

Re: Feedback on git-restore

2019-05-16 Thread Philip Oakley
On 16/05/2019 03:18, Junio C Hamano wrote: Duy Nguyen writes: I think it depends on whether use actively use the index, or you mostly ignore it and always do "git commit -a" and friends. When you do use the index, the "worktree <-> index <-> HEAD" is the three stages that you are aware, in th

Re: Feedback on git-restore

2019-05-15 Thread Junio C Hamano
Duy Nguyen writes: > I think it depends on whether use actively use the index, or you > mostly ignore it and always do "git commit -a" and friends. > > When you do use the index, the "worktree <-> index <-> HEAD" is the > three stages that you are aware, in that order, and restoring from the > "n

Re: Feedback on git-restore

2019-05-15 Thread Ævar Arnfjörð Bjarmason
On Wed, May 15 2019, Duy Nguyen wrote: > On Wed, May 15, 2019 at 09:38:59AM +, Poughon Victor wrote: >> Hi >> >> I came across a description of a new git command currently in >> development called 'git restore'. Since it's still not out, and the >> original poster [1] seemed to ask for feedb

Re: Feedback on git-restore

2019-05-15 Thread Duy Nguyen
On Wed, May 15, 2019 at 12:59:17PM +0200, Ævar Arnfjörð Bjarmason wrote: > One thing that would be really useful (and maybe it even exists, I just > haven't seen it in the mails) is some abbreviated cheatsheet style doc > of before/after in the UI. Similar to cheatsheets like e.g.: > > https:/

Re: Feedback on git-restore

2019-05-15 Thread Duy Nguyen
On Wed, May 15, 2019 at 09:38:59AM +, Poughon Victor wrote: > Hi > > I came across a description of a new git command currently in > development called 'git restore'. Since it's still not out, and the > original poster [1] seemed to ask for feedback, I though I'd send > some here. Hope that's

Feedback on git-restore

2019-05-15 Thread Poughon Victor
Hi I came across a description of a new git command currently in development called 'git restore'. Since it's still not out, and the original poster [1] seemed to ask for feedback, I though I'd send some here. Hope that's ok! Reading the documentation [2] I find it very confusing. In particular