<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/help.c, branch v1.6.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2008-09-12T06:05:39Z</updated>
<entry>
<title>git wrapper: also use aliases to correct mistyped commands</title>
<updated>2008-09-12T06:05:39Z</updated>
<author>
<name>Pieter de Bie</name>
<email>pdebie@ai.rug.nl</email>
</author>
<published>2008-09-10T15:54:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=746c221ad063854e23661f6898c002c8726f5dad'/>
<id>urn:sha1:746c221ad063854e23661f6898c002c8726f5dad</id>
<content type='text'>
Signed-off-by: Pieter de Bie &lt;pdebie@ai.rug.nl&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ar/autospell'</title>
<updated>2008-09-08T06:52:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-09-08T06:52:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=277cd4c4bd8cca31395846fc80ea28bf2cd4ddf2'/>
<id>urn:sha1:277cd4c4bd8cca31395846fc80ea28bf2cd4ddf2</id>
<content type='text'>
* ar/autospell:
  Add help.autocorrect to enable/disable autocorrecting
  git wrapper: DWIM mistyped commands
</content>
</entry>
<entry>
<title>Add help.autocorrect to enable/disable autocorrecting</title>
<updated>2008-08-31T17:15:13Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2008-08-31T13:54:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0e90716d47b429284702b75425a247c9fc41adb'/>
<id>urn:sha1:f0e90716d47b429284702b75425a247c9fc41adb</id>
<content type='text'>
It is off(0) by default, to avoid scaring people unless they asked to.
If set to a non-0 value, wait for that amount of deciseconds before
running the corrected command.

Suggested by Junio, so he has a chance to hit Ctrl-C.

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git wrapper: DWIM mistyped commands</title>
<updated>2008-08-31T17:14:58Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>Johannes.Schindelin@gmx.de</email>
</author>
<published>2008-08-31T13:50:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8af84dadb142f7321ff0ce8690385e99da8ede2f'/>
<id>urn:sha1:8af84dadb142f7321ff0ce8690385e99da8ede2f</id>
<content type='text'>
This patch introduces a modified Damerau-Levenshtein algorithm into
Git's code base, and uses it with the following penalties to show some
similar commands when an unknown command was encountered:

	swap = 0, insertion = 1, substitution = 2, deletion = 4

A typical output would now look like this:

	$ git sm
	git: 'sm' is not a git-command. See 'git --help'.

	Did you mean one of these?
		am
		rm

The cut-off is at similarity rating 6, which was empirically determined
to give sensible results.

As a convenience, if there is only one candidate, Git continues under
the assumption that the user mistyped it.  Example:

	$ git reabse
	WARNING: You called a Git program named 'reabse', which does
	not exist.
	Continuing under the assumption that you meant 'rebase'
	[...]

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>list_commands: only call git_exec_path if it is needed</title>
<updated>2008-08-29T04:51:34Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2008-08-28T17:19:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=61c5d431deb0437b35c18d268c1957eefd1f4b91'/>
<id>urn:sha1:61c5d431deb0437b35c18d268c1957eefd1f4b91</id>
<content type='text'>
Even if it always needed

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Allow git help work without PATH set</title>
<updated>2008-08-29T04:51:28Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2008-08-28T17:19:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1f08e5ce2435f1d5c78a31c0a783d5bb177cd657'/>
<id>urn:sha1:1f08e5ce2435f1d5c78a31c0a783d5bb177cd657</id>
<content type='text'>
Just because we can

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Remove calculation of the longest command name from where it is not used</title>
<updated>2008-08-29T04:49:55Z</updated>
<author>
<name>Alex Riesen</name>
<email>raa.lkml@gmail.com</email>
</author>
<published>2008-08-28T17:15:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e321180ed3e22120e30bb350a5adecbe959e1241'/>
<id>urn:sha1:e321180ed3e22120e30bb350a5adecbe959e1241</id>
<content type='text'>
Just calculate it where it is needed - it is cheap and trivial,
as all the lengths are already there (stored when creating the
command lists).

Signed-off-by: Alex Riesen &lt;raa.lkml@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Builtin git-help.</title>
<updated>2008-08-03T01:06:37Z</updated>
<author>
<name>Miklos Vajna</name>
<email>vmiklos@frugalware.org</email>
</author>
<published>2008-08-02T08:08:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3d78d1f18f211fd3d3e95977dee85a17a2aeb16c'/>
<id>urn:sha1:3d78d1f18f211fd3d3e95977dee85a17a2aeb16c</id>
<content type='text'>
This patch splits out git-help's functions to builtin-help.c and leaves
only functions used by other builtins in help.c.

First this removes git-help's functions from libgit which are not
interesting for other builtins, second this makes 'git help help' work
again.

Signed-off-by: Miklos Vajna &lt;vmiklos@frugalware.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin-help: always load_command_list() in cmd_help()</title>
<updated>2008-07-31T04:38:18Z</updated>
<author>
<name>Miklos Vajna</name>
<email>vmiklos@frugalware.org</email>
</author>
<published>2008-07-30T22:38:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6e4a86d2ed2d798c5462e5e324fefb8614be52a8'/>
<id>urn:sha1:6e4a86d2ed2d798c5462e5e324fefb8614be52a8</id>
<content type='text'>
When cmd_help() is called, we always need the list of main and other
commands, not just when the list of all commands is shown. Before this
patch 'git help diff' invoked 'man gitdiff' because cmd_to_page()
thought 'diff' is not a git command.

Signed-off-by: Miklos Vajna &lt;vmiklos@frugalware.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>builtin-help: make some internal functions available to other builtins</title>
<updated>2008-07-30T06:21:36Z</updated>
<author>
<name>Miklos Vajna</name>
<email>vmiklos@frugalware.org</email>
</author>
<published>2008-07-29T23:16:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=940208a771066229bc6a486f6a058e332b71cfe4'/>
<id>urn:sha1:940208a771066229bc6a486f6a058e332b71cfe4</id>
<content type='text'>
Make load_command_list() capable of filtering for a given prefix and
loading into a pair of "struct cmdnames" supplied by the caller.

Make the static add_cmdname(), exclude_cmds() and is_in_cmdlist()
functions non-static.

Make list_commands() accept a custom title, and work from a pair of
"struct cmdnames" supplied by the caller.

Signed-off-by: Miklos Vajna &lt;vmiklos@frugalware.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
