Re: [PATCH v3] build: add default aliases

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

 



On Sat, Sep 21, 2013 at 02:20:21PM -0500, Felipe Contreras wrote:

> For now simply add a few common aliases.
> 
>   co = checkout
>   ci = commit
>   rb = rebase
>   st = status

Are these the best definitions of those shortcuts? It seems[1] that some
people define "ci" as "commit -a", and some people define "st" as
"status -s" or even "status -sb".

You are making things more consistent for people who already define
those aliases in the same way (they are available everywhere, even if
they have not moved their config to a new installation), but less so for
people who define them differently. Rather than get an obvious:

  git: 'co' is not a git command. See 'git --help'.

the result will be subtly different (especially so in the case of
"commit" versus "commit -a").

-Peff

[1] https://github.com/search?q=%22ci+%3D+commit+-a%22+path%3A.gitconfig&type=Code

    https://github.com/search?q=%22st+%3D+status+-s%22&type=Code

    https://github.com/search?q=%22st+%3D+status+-sb%22&type=Code
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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]