<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/help.h, branch v2.18.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.18.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.18.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-05-21T04:23:14Z</updated>
<entry>
<title>completion: allow to customize the completable command list</title>
<updated>2018-05-21T04:23:14Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-05-20T18:40:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6532f3740b1c228c0a2a03a4126f4f7e4f2d73e7'/>
<id>urn:sha1:6532f3740b1c228c0a2a03a4126f4f7e4f2d73e7</id>
<content type='text'>
By default we show porcelain, external commands and a couple others
that are also popular. If you are not happy with this list, you can
now customize it a new config variable.

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: use command-list.txt for the source of guides</title>
<updated>2018-05-21T04:23:14Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-05-20T18:40:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1b81d8cb19d8da6d865b7fca5a095dd5fec8d209'/>
<id>urn:sha1:1b81d8cb19d8da6d865b7fca5a095dd5fec8d209</id>
<content type='text'>
The help command currently hard codes the list of guides and their
summary in C. Let's move this list to command-list.txt. This lets us
extract summary lines from Documentation/git*.txt. This also
potentially lets us list guides in git.txt, but I'll leave that for
now.

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: add "-a --verbose" to list all commands with synopsis</title>
<updated>2018-05-21T04:23:14Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-05-20T18:40:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=63eae83f8f301a1052cdde254b84f5da00e7b9b6'/>
<id>urn:sha1:63eae83f8f301a1052cdde254b84f5da00e7b9b6</id>
<content type='text'>
This lists all recognized commands [1] by category. The group order
follows closely git.txt.

[1] We may actually show commands that are not built (e.g. if you set
NO_PERL you don't have git-instaweb but it's still listed here). I
ignore the problem because on Linux a git package could be split
anyway. The "git-core" package may not contain git-instaweb even if
it's built because it may end up in a separate package. We can't know
anyway.

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>git: support --list-cmds=list-&lt;category&gt;</title>
<updated>2018-05-21T04:23:14Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-05-20T18:40:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3c7777672bf9bc9ac2ddb422633b39af4faa1682'/>
<id>urn:sha1:3c7777672bf9bc9ac2ddb422633b39af4faa1682</id>
<content type='text'>
This allows us to select any group of commands by a category defined
in command-list.txt. This is an internal/hidden option so we don't
have to be picky about the category name or worried about exposing too
much.

This will be used later by git-completion.bash to retrieve certain
command groups.

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>completion: implement and use --list-cmds=main,others</title>
<updated>2018-05-21T04:23:14Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2018-05-20T18:39:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6bb2dc0b9472a84c7d17ee93bda28a7c1c97d415'/>
<id>urn:sha1:6bb2dc0b9472a84c7d17ee93bda28a7c1c97d415</id>
<content type='text'>
This is part of the effort to break down and provide commands by
category in machine-readable form. This could be helpful later on when
completion script switches to use --list-cmds for selecting
completable commands. It would be much easier for the user to choose
to complete _all_ commands instead of the default selection by passing
different values to --list-cmds in git-completino.bash.

While at there, replace "git help -a" in git-completion.bash with
--list-cmds since it's better suited for this task.

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: add help_unknown_ref()</title>
<updated>2013-05-08T22:31:54Z</updated>
<author>
<name>Vikrant Varma</name>
<email>vikrant.varma94@gmail.com</email>
</author>
<published>2013-05-04T00:04:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e56181060e1117d458b854c34e63206117dab8b6'/>
<id>urn:sha1:e56181060e1117d458b854c34e63206117dab8b6</id>
<content type='text'>
When the user gives an unknown string to a command that expects to
get a ref, we could be more helpful than just saying "that's not a
ref" and die.

Add helper function help_unknown_ref() to take care of displaying an
error message along with a list of suggested refs the user might
have meant.  An interaction with "git merge" might go like this:

	$ git merge foo
	merge: foo - not something we can merge

	Did you mean one of these?
	    origin/foo
	    upstream/foo

Signed-off-by: Vikrant Varma &lt;vikrant.varma94@gmail.com&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>builtin.h: Move two functions definitions to help.h.</title>
<updated>2010-09-01T15:00:51Z</updated>
<author>
<name>Thiago Farina</name>
<email>tfransosi@gmail.com</email>
</author>
<published>2010-09-01T02:29:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fd5c363da4635d81f29193ae19d8fa7b5657ab39'/>
<id>urn:sha1:fd5c363da4635d81f29193ae19d8fa7b5657ab39</id>
<content type='text'>
The two functions defined here are implemented in help.c, so makes more sense
to put the definition of those in help.h instead of in builtin.h.

Signed-off-by: Thiago Farina &lt;tfransosi@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
