Re: [PATCH v4 00/26] Add new command 'switch'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 17, 2019 at 7:49 PM Nguyễn Thái Ngọc Duy <pclouds@xxxxxxxxx> wrote:
>
> Thanks for all the comments from v3 (and before), I didn't expect
> feedback from so many people. v4 fixes most of them, but still leaves
> a couple for v5.
>
> - -C remains because people seem to need it
>
> - --recreate vs --force-create: there was no strong preference for
>   either, so I stick with --force-create
>
> - --guess (dwim mode) is now made default
>
> - --orphan by default switches to an empty tree instead of current HEAD
>   (this is Elijah's alternative approach). This allows you to start
>   fresh, but you can still keep "HEAD" content or even switch to another
>   tree.
>
> - advice.detachedHead text is updated to suggest a way out (currently it
>   only suggests a way forward with 'checkout -b')
>
> - --force has a new alias --discard-changes
>
> - the error message when we expect a branch is improved to help point
>   out why the given argument is not a branch
>
> - more docs update and reorganization, and other silly bugs I made in
>   v3

I did forget one thing:

- 'git switch' refuses to switch in the middle of
rebase/bisect/cherry-pick/... session. Add --ignore-in-progress to
override this

Now that I mention this, --ignore-in-progress should probably be part
of --force too. Hmm...
-- 
Duy




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux