<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/log-tree.c, branch v1.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2010-06-24T19:57:34Z</updated>
<entry>
<title>Allow customizable commit decorations colors</title>
<updated>2010-06-24T19:57:34Z</updated>
<author>
<name>Nazri Ramliy</name>
<email>ayiehere@gmail.com</email>
</author>
<published>2010-06-24T00:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5e11bee65f601ba97dc4c61c75fcb2f448fdcb1c'/>
<id>urn:sha1:5e11bee65f601ba97dc4c61c75fcb2f448fdcb1c</id>
<content type='text'>
Signed-off-by: Nazri Ramliy &lt;ayiehere@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>log --decorate: Colorize commit decorations</title>
<updated>2010-06-21T04:44:32Z</updated>
<author>
<name>Nazri Ramliy</name>
<email>ayiehere@gmail.com</email>
</author>
<published>2010-06-19T01:37:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=67a4b5864f9423ccfe8090365029dae918504830'/>
<id>urn:sha1:67a4b5864f9423ccfe8090365029dae918504830</id>
<content type='text'>
This makes the decorations stand out more and easier to distinguish
and spot because they are colored differently depending on their type.

Signed-off-by: Nazri Ramliy &lt;ayiehere@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>log-tree.c: Use struct name_decoration's type for classifying decoration</title>
<updated>2010-06-21T04:44:17Z</updated>
<author>
<name>Nazri Ramliy</name>
<email>ayiehere@gmail.com</email>
</author>
<published>2010-06-19T01:37:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a7524128750ebf34fe0639e1e5d7abd03aff0302'/>
<id>urn:sha1:a7524128750ebf34fe0639e1e5d7abd03aff0302</id>
<content type='text'>
The "tag: " prefix is no longer prepended to the name of the decoration.
It is now printed conditionally by show_decorations if the decoration
type is DECORATION_REF_TAG.

Signed-off-by: Nazri Ramliy &lt;ayiehere@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Output the graph columns at the end of the commit message</title>
<updated>2010-06-01T01:00:21Z</updated>
<author>
<name>Bo Yang</name>
<email>struggleyb.nku@gmail.com</email>
</author>
<published>2010-05-26T07:08:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=81bd1b2a96ecc12dcc72fc2b22aa5b7691186685'/>
<id>urn:sha1:81bd1b2a96ecc12dcc72fc2b22aa5b7691186685</id>
<content type='text'>
There is an empty line between the commit message and the diff
output. Add the graph columns as prefix of this line.

Signed-off-by: Bo Yang &lt;struggleyb.nku@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git log -p -m: document -m and honor --first-parent</title>
<updated>2010-02-12T19:32:23Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@suse.cz</email>
</author>
<published>2010-02-10T01:11:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=88d9d45d071379e81e585faa95e4f28414d7d973'/>
<id>urn:sha1:88d9d45d071379e81e585faa95e4f28414d7d973</id>
<content type='text'>
git log -p -m is used to show one merge entry per parent, with an
appropriate diff; this can be useful when examining histories where
full set of changes introduced by a merged branch is interesting, not
only the conflicts.

This patch properly documents the -m switch, which has so far been
mentioned only as a fairly special diff-tree flag.

It also makes the code show full patch entry only for the first parent
when --first-parent is used. Thus:

	git log -p -m --first-parent

will show the history from the "main branch perspective", while also
including full diff of changes introduced by other merged in branches.

Signed-off-by: Petr Baudis &lt;pasky@suse.cz&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix "log" family not to be too agressive about showing notes</title>
<updated>2010-01-21T03:57:02Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-01-20T21:59:36Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=66b2ed09c2f0f212c5cd5c095c1f1052ecbb9491'/>
<id>urn:sha1:66b2ed09c2f0f212c5cd5c095c1f1052ecbb9491</id>
<content type='text'>
Giving "Notes" information in the default output format of "log" and
"show" is a sensible progress (the user has asked for it by having the
notes), but for some commands (e.g. "format-patch") spewing notes into the
formatted commit log message without being asked is too aggressive.

Enable notes output only for "log", "show", "whatchanged" by default and
only when the user didn't ask any specific --pretty/--format from the
command line; users can explicitly override this default with --show-notes
and --no-notes option.

Parts of tests are taken from Jeff King's fix.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Introduce new pretty formats %g[sdD] for reflog information</title>
<updated>2009-10-20T05:28:26Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-10-19T15:48:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f8f5476cd6542387d435c242752404cf144005f'/>
<id>urn:sha1:8f8f5476cd6542387d435c242752404cf144005f</id>
<content type='text'>
Add three new --pretty=format escapes:

  %gD  long  reflog descriptor (e.g. refs/stash@{0})
  %gd  short reflog descriptor (e.g. stash@{0})
  %gs  reflog message

This is achieved by passing down the reflog info, if any, inside the
pretty_print_context struct.

We use the newly refactored get_reflog_selector(), and give it some
extra functionality to extract a shortened ref.  The shortening is
cached inside the commit_reflogs struct; the only allocation of it
happens in read_complete_reflog(), where it is initialised to 0.  Also
add another helper get_reflog_message() for the message extraction.

Note that the --format="%h %gD: %gs" tests may not work in real
repositories, as the --pretty formatter doesn't know to leave away the
": " on the last commit in an incomplete (because git-gc removed the
old part) reflog.  This equivalence is nevertheless the main goal of
this patch.

Thanks to Jeff King for reviews, the %gd testcase and documentation.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Refactor pretty_print_commit arguments into a struct</title>
<updated>2009-10-20T05:28:20Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-10-19T15:48:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dd2e794a214350711db46c4e08d9b19188a7d63a'/>
<id>urn:sha1:dd2e794a214350711db46c4e08d9b19188a7d63a</id>
<content type='text'>
pretty_print_commit() has a bunch of rarely-used arguments, and
introducing more of them requires yet another update of all the call
sites.  Refactor most of them into a struct to make future extensions
easier.

The ones that stay "plain" arguments were chosen on the grounds that
all callers put real arguments there, whereas some callers have 0/NULL
for all arguments that were factored into the struct.

We declare the struct 'const' to ensure none of the callers are bitten
by the changed (no longer call-by-value) semantics.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Let --decorate show HEAD position</title>
<updated>2009-10-12T23:22:35Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-10-12T20:34:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=77abcbdc268d048b7a19af405607fb8d14e630ed'/>
<id>urn:sha1:77abcbdc268d048b7a19af405607fb8d14e630ed</id>
<content type='text'>
'git log --graph --oneline --decorate --all' is a useful way to get a
general overview of the repository state, similar to 'gitk --all'.
Let it indicate the position of HEAD by loading that ref too, so that
the --decorate code can see it.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>improve reflog date/number heuristic</title>
<updated>2009-09-29T17:06:49Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-09-24T08:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f4ea32f0b48bc300afcb7c980c5a294deba31daa'/>
<id>urn:sha1:f4ea32f0b48bc300afcb7c980c5a294deba31daa</id>
<content type='text'>
When we show a reflog, we have two ways of naming the entry:
by sequence number (e.g., HEAD@{0}) or by date (e.g.,
HEAD@{10 minutes ago}). There is no explicit option to set
one or the other, but we guess based on whether or not the
user has provided us with a date format, showing them the
date version if they have done so, and the sequence number
otherwise.

This usually made sense if the use did something like "git
log -g --date=relative". However, it didn't make much sense
if the user set the date format using the log.date config
variable; in that case, all of their reflogs would end up as
dates.

This patch records the source of the date format and only
triggers the date-based view if --date= was given on the
command line.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
</feed>
