Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-02-08 Thread Duy Nguyen
On Thu, Jan 31, 2019 at 8:09 PM SZEDER Gábor wrote: > > On Wed, Jan 30, 2019 at 04:48:20PM +0700, Nguyễn Thái Ngọc Duy wrote: > > diff --git a/Documentation/git-switch.txt b/Documentation/git-switch.txt > > new file mode 100644 > > index 00..953c9747b2 > > > +--orphan :: > > + Create a

Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-01-31 Thread SZEDER Gábor
On Wed, Jan 30, 2019 at 04:48:20PM +0700, Nguyễn Thái Ngọc Duy wrote: > diff --git a/Documentation/git-switch.txt b/Documentation/git-switch.txt > new file mode 100644 > index 00..953c9747b2 > +--orphan :: > + Create a new 'orphan' branch, named , started from > + and switch to it

Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-01-31 Thread SZEDER Gábor
On Thu, Jan 31, 2019 at 12:29:01PM +0700, Duy Nguyen wrote: > > > +EXAMPLES > > > +To check out commit "HEAD~3" for temporary inspection or experiment > > > +without creating a new branch: > > > + > > > + > > > +$ git switch --detach HEAD~3 > > > +HEAD is now at 9fc9555312 Merge branch

Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-01-30 Thread Eric Sunshine
On Thu, Jan 31, 2019 at 2:44 AM Duy Nguyen wrote: > On Thu, Jan 31, 2019 at 1:25 PM Eric Sunshine wrote: > > I find, however, that the top-level git-switch "DESCRIPTION" section, > > which talks about "switching branches" doesn't actually ever explain > > what it means to "switch" to a branch. Ev

Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-01-30 Thread Duy Nguyen
On Thu, Jan 31, 2019 at 1:25 PM Eric Sunshine wrote: > I find, however, that the top-level git-switch "DESCRIPTION" section, > which talks about "switching branches" doesn't actually ever explain > what it means to "switch" to a branch. Even adding a simple sentence > stating that "switching to a

Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-01-30 Thread Eric Sunshine
On Thu, Jan 31, 2019 at 1:24 AM Eric Sunshine wrote: > On Thu, Jan 31, 2019 at 12:29 AM Duy Nguyen wrote: > > On Thu, Jan 31, 2019 at 7:50 AM Eric Sunshine > > wrote: > > > On Wed, Jan 30, 2019 at 4:49 AM Nguyễn Thái Ngọc Duy > > > wrote: > > > > +'git switch' [] [--guess] > > > > +'git swit

Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-01-30 Thread Eric Sunshine
On Thu, Jan 31, 2019 at 12:29 AM Duy Nguyen wrote: > On Thu, Jan 31, 2019 at 7:50 AM Eric Sunshine wrote: > > On Wed, Jan 30, 2019 at 4:49 AM Nguyễn Thái Ngọc Duy > > wrote: > > > +'git switch' [] [--guess] > > > +'git switch' [] --detach [>] > > > +'git switch' [] [[-c|-C|--orphan] ] [] > > >

Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-01-30 Thread Duy Nguyen
On Thu, Jan 31, 2019 at 7:50 AM Eric Sunshine wrote: > > On Wed, Jan 30, 2019 at 4:49 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

Re: [PATCH 08/19] checkout: split part of it to new command switch

2019-01-30 Thread Eric Sunshine
On Wed, Jan 30, 2019 at 4:49 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 > something-to-checkout-paths. The good o