tags 501464 + wontfix
quit

Hi David,

David Förster wrote:

> Most of the VCSes I've ever used accept similar short aliases for common
> commands. It would be handy if those were configured by default in git.
> (Global gitconfig)
>
> status: st
> diff: di
> commit: ci
> checkout: co

Thanks for reporting; that does seem to be a common wish.  

Some reading:

 http://thread.gmane.org/gmane.comp.version-control.git/122926

I'd be happy to ship examples in /usr/share/doc/git/examples/ to get
people started if someone writes them, but I'm not inclined to see
this implemented in /etc/gitconfig, for a number of reasons.

The most important reason is that the longer forms, while harder to
type, are easier to _read_.  As a selfish person, I do not want bug
reports and documentation to start relying on these bigrams I have to
look up the meaning of, as they inevitably would, even though I do not
at all mind people being able to configure such abbreviations for
their own use.

A little side-benefit is that you can configure the abbreviated
commands you actually use to behave in some customized way; for
example,

        [alias]
        ci = commit -a
        st = status -s

for concise "git st" output and a "git ci" command that commits all
changes in the worktree for tracked files instead of restricting
itself to changes that were marked as ready with "git add".

Sincerely,
Jonathan



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to