<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/help.c, branch v1.8.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.8.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.8.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2013-04-16T22:01:30Z</updated>
<entry>
<title>help.c: add a compatibility comment to cmd_version()</title>
<updated>2013-04-16T22:01:30Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2013-04-16T20:33:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f2de0b97935da2ba3ccb627457e5fa3fc4e11287'/>
<id>urn:sha1:f2de0b97935da2ba3ccb627457e5fa3fc4e11287</id>
<content type='text'>
External projects have been known to parse the output of
"git version".  Help prevent future authors from changing
its format by adding a comment to its implementation.

Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>help: include &lt;common-cmds.h&gt; only in one file</title>
<updated>2013-01-19T06:35:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2013-01-19T06:35:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1542d4cdad9287896fd80d84a4c2256197087308'/>
<id>urn:sha1:1542d4cdad9287896fd80d84a4c2256197087308</id>
<content type='text'>
This header not only declares but also defines the contents of the
array that holds the list of command names and help text.  Do not
include it in multiple places to waste text space.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>help.c::exclude_cmds(): plug a leak</title>
<updated>2012-07-25T18:08:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-25T18:01:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6a17f583f4db98a867d84ca95bbbc4de3cd0feaa'/>
<id>urn:sha1:6a17f583f4db98a867d84ca95bbbc4de3cd0feaa</id>
<content type='text'>
Command name removed from the list of commands via the exclusion
were overwritten and lost without being freed.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>help.c::uniq: plug a leak</title>
<updated>2012-07-25T17:23:54Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-07-25T16:16:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4a15758f2ef97970694012cfd6da7c8449bc68c2'/>
<id>urn:sha1:4a15758f2ef97970694012cfd6da7c8449bc68c2</id>
<content type='text'>
We observe that the j-1 element can serve the same purpose as the i-1
element that we use in the strcmp(); it is either:

  1. Exactly i-1, when the loop begins (and until we see a duplicate).

  2. The same pointer that was stored at i-1 (if it was not a duplicate,
     and we just copied it into place).

  3. A pointer to an equivalent string (i.e., we rejected i-1 _because_
     it was identical to j-1).

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Tay Ray Chuan &lt;rctay89@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>move git_version_string into version.c</title>
<updated>2012-06-03T20:11:34Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-06-02T18:51:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=816fb46be665c8b63647f0096845fef363736b20'/>
<id>urn:sha1:816fb46be665c8b63647f0096845fef363736b20</id>
<content type='text'>
The global git_version_string currently lives in git.c, but
doesn't have anything to do with the git wrapper. Let's move
it into its own file, where it will be more appropriate to
build more version-related functions.

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>Reduce cost of deletion in levenstein distance (4 -&gt; 3)</title>
<updated>2012-05-29T18:12:59Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2012-05-27T16:02:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c41494f8c89c330cc9bd4629cdc3c428803e76bc'/>
<id>urn:sha1:c41494f8c89c330cc9bd4629cdc3c428803e76bc</id>
<content type='text'>
Before this patch, a character deletion has the same cost as 2 swaps, or
4 additions, so Git prefers suggesting a completely scrambled command
name to removing a character. For example, "git tags" suggests "stage",
but not "tag".

By setting the deletion cost to 3, we keep it higher than swaps or
additions, but prefer 1 deletion to 2 swaps. "git tags" now suggests
"tag" in addition to staged.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'nd/columns'</title>
<updated>2012-05-03T22:13:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-05-03T22:13:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f4ed0af6e2762bc43de474d1fcaa2863b00268eb'/>
<id>urn:sha1:f4ed0af6e2762bc43de474d1fcaa2863b00268eb</id>
<content type='text'>
A couple of commands learn --column option to produce columnar output.

By Nguyễn Thái Ngọc Duy (9) and Zbigniew Jędrzejewski-Szmek (1)
* nd/columns:
  tag: add --column
  column: support piping stdout to external git-column process
  status: add --column
  branch: add --column
  help: reuse print_columns() for help -a
  column: add dense layout support
  t9002: work around shells that are unable to set COLUMNS to 1
  column: add columnar layout
  Stop starting pager recursively
  Add column layout skeleton and git-column
</content>
</entry>
<entry>
<title>help: reuse print_columns() for help -a</title>
<updated>2012-04-27T16:26:38Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-04-13T10:54:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dbfae689690bead0e49130b149c869834795cf81'/>
<id>urn:sha1:dbfae689690bead0e49130b149c869834795cf81</id>
<content type='text'>
"help -a" also respects column.ui (and column.help if presents)

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>help: replace underlining "help -a" headers using hyphens with a blank line</title>
<updated>2012-04-25T17:30:11Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-04-25T11:21:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4470ef94973cf40bb83864d480cee1e064053879'/>
<id>urn:sha1:4470ef94973cf40bb83864d480cee1e064053879</id>
<content type='text'>
We used to underline a header text, like this:

    This is a header
    ----------------
    content...

But calculating text length so that the dashes align with the text
could get complicated because the text could be in any charset in
translated Git.

There is no point to use this pseudo underline; simply a blank
line would do and it even makes it easier to read:

    This is a header

    content...

While at it, give translators more context to translate, e.g.
e.g.  "git commands available..." instead of "%s available..."

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>i18n: help: mark strings for translation</title>
<updated>2012-04-24T21:55:48Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-04-23T12:30:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9665627d8cc6f0263f0019e92c67a38223804b57'/>
<id>urn:sha1:9665627d8cc6f0263f0019e92c67a38223804b57</id>
<content type='text'>
This patch also marks most common commands' synopsis for translation
so that "git help" gives a friendly listing.

Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
