From: Stephan Beyer <s-beyer@gmx.net>
To: Felipe Contreras <felipe.contreras@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: About git pretty
Date: Sat, 23 Aug 2008 02:03:37 +0200 [thread overview]
Message-ID: <20080823000336.GB14684@leksak.fem-net> (raw)
In-Reply-To: <94a0d4530808221624m26034923pbc1f97cb4c4203d8@mail.gmail.com>
Hi,
Felipe Contreras wrote:
> Hi,
>
> Please read aloud the following commands:
> git log --pretty=short
> git log --pretty=full
> git log --pretty=format:%s
>
> It is just me or 'pretty full' doesn't exactly convey the meaning of
> the action to execute?
But "pretty short" and "pretty format" is. :)
> How about:
> git log --format=short
> git log --format=full
> git log --format=custom:%s
>
> If you like the idea I can work on a patch.
Because --pretty=<format> is an option taken by many git commands including
git plumbing (e.g. rev-list), many scripts will rely on "--pretty" and they
all would have to be changed. And --pretty exists since Jan 2005 (see
9d97aa64).
Also, --format is an option available to git-archive and git-for-each-ref
with a different intention for each. --pretty exists for several git
commands with the same intention for all (I think) -- pretty-printing
commit objects.
And, btw, I also do not think that your idea does really solve the
"problem" that it always will make sense when you read it aloud.
Thus it seems that --format has no benefit over --pretty at all. :-)
Ahh, another thought:
If a new git user is looking for an option to _format_ git-log output,
she will surely search the git-log manual page for the word "format", finding
1. --raw
2. --shortstat
3. --abbrev
4. --full-index
5. --pretty
STRIKE!
This makes me wonder if it could make sense to move --pretty up in the
git-log manual page, but I do not think renaming it is worth the
trouble.
Regards,
Stephan
--
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
next prev parent reply other threads:[~2008-08-23 0:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-22 23:24 About git pretty Felipe Contreras
2008-08-22 23:41 ` Junio C Hamano
2008-08-23 0:04 ` David Tweed
2008-08-23 0:12 ` Junio C Hamano
2008-08-23 0:34 ` David Tweed
2008-08-23 0:38 ` David Tweed
2008-08-23 0:03 ` Stephan Beyer [this message]
2008-08-23 18:57 ` Felipe Contreras
2008-08-24 17:49 ` Johannes Schindelin
2008-08-30 16:30 ` Junio C Hamano
2009-02-21 15:31 ` Felipe Contreras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080823000336.GB14684@leksak.fem-net \
--to=s-beyer@gmx.net \
--cc=felipe.contreras@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).