<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/pretty.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-22T16:45:22Z</updated>
<entry>
<title>Merge branch 'mg/pretty-magic-space'</title>
<updated>2010-06-22T16:45:22Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-06-22T16:45:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=223a923c37f76ee91eb6a9cb77ce6d31dcf939cc'/>
<id>urn:sha1:223a923c37f76ee91eb6a9cb77ce6d31dcf939cc</id>
<content type='text'>
* mg/pretty-magic-space:
  pretty: Introduce ' ' modifier to add space if non-empty

Conflicts:
	pretty.c
</content>
</entry>
<entry>
<title>Merge branch 'gv/portable'</title>
<updated>2010-06-21T13:02:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-06-21T13:02:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8d676d85f772ce3a100b6f0dddd1c34a7e4313cf'/>
<id>urn:sha1:8d676d85f772ce3a100b6f0dddd1c34a7e4313cf</id>
<content type='text'>
* gv/portable:
  test-lib: use DIFF definition from GIT-BUILD-OPTIONS
  build: propagate $DIFF to scripts
  Makefile: Tru64 portability fix
  Makefile: HP-UX 10.20 portability fixes
  Makefile: HPUX11 portability fixes
  Makefile: SunOS 5.6 portability fix
  inline declaration does not work on AIX
  Allow disabling "inline"
  Some platforms lack socklen_t type
  Make NO_{INET_NTOP,INET_PTON} configured independently
  Makefile: some platforms do not have hstrerror anywhere
  git-compat-util.h: some platforms with mmap() lack MAP_FAILED definition
  test_cmp: do not use "diff -u" on platforms that lack one
  fixup: do not unconditionally disable "diff -u"
  tests: use "test_cmp", not "diff", when verifying the result
  Do not use "diff" found on PATH while building and installing
  enums: omit trailing comma for portability
  Makefile: -lpthread may still be necessary when libc has only pthread stubs
  Rewrite dynamic structure initializations to runtime assignment
  Makefile: pass CPPFLAGS through to fllow customization

Conflicts:
	Makefile
	wt-status.h
</content>
</entry>
<entry>
<title>pretty: Introduce ' ' modifier to add space if non-empty</title>
<updated>2010-06-16T21:45:09Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@drmicha.warpmail.net</email>
</author>
<published>2010-06-14T16:12:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7b88176e9bce658fd44c2192c1b7aa6e612ee0c2'/>
<id>urn:sha1:7b88176e9bce658fd44c2192c1b7aa6e612ee0c2</id>
<content type='text'>
We have the '+' modifiier which helps combine format specifiers which
may possibly be empty, e.g. '%s%+b%n'.

Introduce an analogous ' ' (space) modifier which adds a space before
non-empty items. This helps assemble "one line type" format specifiers.

Signed-off-by: Michael J Gruber &lt;git@drmicha.warpmail.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'wp/pretty-enhancement'</title>
<updated>2010-06-13T18:21:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-06-13T18:21:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ce987457ca3db0c78d5e720f753adf210fd3dd65'/>
<id>urn:sha1:ce987457ca3db0c78d5e720f753adf210fd3dd65</id>
<content type='text'>
* wp/pretty-enhancement:
  pretty: initialize new cmt_fmt_map to 0
  pretty: add aliases for pretty formats
  pretty: add infrastructure for commit format aliases
  pretty: make it easier to add new formats
</content>
</entry>
<entry>
<title>enums: omit trailing comma for portability</title>
<updated>2010-05-31T23:59:27Z</updated>
<author>
<name>Gary V. Vaughan</name>
<email>git@mlists.thewrittenword.com</email>
</author>
<published>2010-05-14T09:31:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4b05548fc0523744b7a1276cfa0f4aae19d6d9c9'/>
<id>urn:sha1:4b05548fc0523744b7a1276cfa0f4aae19d6d9c9</id>
<content type='text'>
Without this patch at least IBM VisualAge C 5.0 (I have 5.0.2) on AIX
5.1 fails to compile git.

enum style is inconsistent already, with some enums declared on one
line, some over 3 lines with the enum values all on the middle line,
sometimes with 1 enum value per line... and independently of that the
trailing comma is sometimes present and other times absent, often
mixing with/without trailing comma styles in a single file, and
sometimes in consecutive enum declarations.

Clearly, omitting the comma is the more portable style, and this patch
changes all enum declarations to use the portable omitted dangling
comma style consistently.

Signed-off-by: Gary V. Vaughan &lt;gary@thewrittenword.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jn/shortlog'</title>
<updated>2010-05-21T11:02:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-05-21T11:02:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8e3bc1456efdd4cc875d194e4fbdad07b325354b'/>
<id>urn:sha1:8e3bc1456efdd4cc875d194e4fbdad07b325354b</id>
<content type='text'>
* jn/shortlog:
  pretty: Respect --abbrev option
  shortlog: Document and test --format option
  t4201 (shortlog): Test output format with multiple authors
  t4201 (shortlog): guard setup with test_expect_success
  Documentation/shortlog: scripted users should not rely on implicit HEAD
</content>
</entry>
<entry>
<title>Merge branch 'eb/unpretty-b-format'</title>
<updated>2010-05-09T05:36:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-05-09T05:36:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=67e5c87cd60668c97712b14af8562b558239a757'/>
<id>urn:sha1:67e5c87cd60668c97712b14af8562b558239a757</id>
<content type='text'>
* eb/unpretty-b-format:
  Add `%B' in format strings for raw commit body in `git log' and friends
</content>
</entry>
<entry>
<title>pretty: initialize new cmt_fmt_map to 0</title>
<updated>2010-05-08T23:09:31Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2010-05-08T21:07:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=95a2618f60a61fae8097695255419f257f74dff9'/>
<id>urn:sha1:95a2618f60a61fae8097695255419f257f74dff9</id>
<content type='text'>
Without this change, is_alias is likely to happen to be nonzero,
resulting in "fatal: invalid --pretty format" when the fake alias
cannot be resolved.

Use memset instead of initializing the members one by one to make it
easier to expand the struct in the future if needed.

t4205 (log --pretty) does not pass for me without this fix.

Cc: Will Palmer &lt;wmpalmer@gmail.com&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pretty: Respect --abbrev option</title>
<updated>2010-05-04T22:38:58Z</updated>
<author>
<name>Will Palmer</name>
<email>wmpalmer@gmail.com</email>
</author>
<published>2010-05-04T03:18:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c197702156e2164074327f5e870ab0d3021977fc'/>
<id>urn:sha1:c197702156e2164074327f5e870ab0d3021977fc</id>
<content type='text'>
Prior to this, the output of git log -1 --format=%h was always 7
characters long, without regard to whether --abbrev had been passed.

Signed-off-by: Will Palmer &lt;wmpalmer@gmail.com&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pretty: add aliases for pretty formats</title>
<updated>2010-05-03T16:40:32Z</updated>
<author>
<name>Will Palmer</name>
<email>wmpalmer@gmail.com</email>
</author>
<published>2010-05-02T11:00:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8028184eecf1051e4b39b308a3ad909eed1371c4'/>
<id>urn:sha1:8028184eecf1051e4b39b308a3ad909eed1371c4</id>
<content type='text'>
previously the only ways to alias a --pretty format within git were
either to set the format as your default format (via the format.pretty
configuration variable), or by using a regular git alias. This left the
definition of more complicated formats to the realm of "builtin or
nothing", with user-defined formats usually being reserved for quick
one-offs.

Here we allow user-defined formats to enjoy more or less the same
benefits of builtins. By defining pretty.myalias, "myalias" can be
used in place of whatever would normally come after --pretty=. This
can be a format:, tformat:, raw (ie, defaulting to tformat), or the name
of another builtin or user-defined pretty format.

Signed-off-by: Will Palmer &lt;wmpalmer@gmail.com&gt;
Reviewed-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
