<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/contrib/completion/git-completion.bash, branch v2.25.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.25.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.25.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2019-12-10T21:11:43Z</updated>
<entry>
<title>Merge branch 'dl/pretty-reference'</title>
<updated>2019-12-10T21:11:43Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-10T21:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d37cfe3b5c7ef64aff0459ce2730464120c97f30'/>
<id>urn:sha1:d37cfe3b5c7ef64aff0459ce2730464120c97f30</id>
<content type='text'>
"git log" family learned "--pretty=reference" that gives the name
of a commit in the format that is often used to refer to it in log
messages.

* dl/pretty-reference:
  SubmittingPatches: use `--pretty=reference`
  pretty: implement 'reference' format
  pretty: add struct cmt_fmt_map::default_date_mode_type
  pretty: provide short date format
  t4205: cover `git log --reflog -z` blindspot
  pretty.c: inline initalize format_context
  revision: make get_revision_mark() return const pointer
  completion: complete `tformat:` pretty format
  SubmittingPatches: remove dq from commit reference
  pretty-formats.txt: use generic terms for hash
  SubmittingPatches: use generic terms for hash
</content>
</entry>
<entry>
<title>Merge branch 'dl/submodule-set-url'</title>
<updated>2019-12-10T21:11:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-10T21:11:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=99c4ff1bdabc2122a7c6a2b8df87acdd0c2dd18f'/>
<id>urn:sha1:99c4ff1bdabc2122a7c6a2b8df87acdd0c2dd18f</id>
<content type='text'>
"git submodule" learned a subcommand "set-url".

* dl/submodule-set-url:
  submodule: teach set-url subcommand
</content>
</entry>
<entry>
<title>Merge branch 'js/complete-svn-recursive'</title>
<updated>2019-12-01T17:04:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-01T17:04:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a6c6f8d02aff15d50ba63b31936453938defd571'/>
<id>urn:sha1:a6c6f8d02aff15d50ba63b31936453938defd571</id>
<content type='text'>
The completion script (in contrib/) has been taught that "git svn"
supports the "--recursive" option.

* js/complete-svn-recursive:
  completion: tab-complete "git svn --recursive"
</content>
</entry>
<entry>
<title>Merge branch 'dl/complete-rebase-onto'</title>
<updated>2019-12-01T17:04:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2019-12-01T17:04:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef8f6210457a3af5a1c36ba066cb4f2b5a8529fa'/>
<id>urn:sha1:ef8f6210457a3af5a1c36ba066cb4f2b5a8529fa</id>
<content type='text'>
The completion script (in contrib/) learned that the "--onto"
option of "git rebase" can take its argument as the value of the
option.

* dl/complete-rebase-onto:
  completion: learn to complete `git rebase --onto=`
</content>
</entry>
<entry>
<title>pretty: implement 'reference' format</title>
<updated>2019-11-20T04:33:37Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-11-20T00:51:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1f0fc1db8599f87520494ca4f0e3c1b6fabdf997'/>
<id>urn:sha1:1f0fc1db8599f87520494ca4f0e3c1b6fabdf997</id>
<content type='text'>
The standard format for referencing other commits within some projects
(such as git.git) is the reference format. This is described in
Documentation/SubmittingPatches as

	If you want to reference a previous commit in the history of a stable
	branch, use the format "abbreviated hash (subject, date)", like this:

	....
		Commit f86a374 (pack-bitmap.c: fix a memleak, 2015-03-30)
		noticed that ...
	....

Since this format is so commonly used, standardize it as a pretty
format.

The tests that are implemented essentially show that the format-string
does not change in response to various log options. This is useful
because, for future developers, it shows that we've considered the
limitations of the "canned format-string" approach and we are fine with
them.

Based-on-a-patch-by: SZEDER Gábor &lt;szeder.dev@gmail.com&gt;
Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: complete `tformat:` pretty format</title>
<updated>2019-11-20T04:33:36Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-11-20T00:51:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0f9de2bd71b41afeb2a2a77a681a15a83246a62'/>
<id>urn:sha1:f0f9de2bd71b41afeb2a2a77a681a15a83246a62</id>
<content type='text'>
Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: tab-complete "git svn --recursive"</title>
<updated>2019-11-13T03:46:12Z</updated>
<author>
<name>James Shubin</name>
<email>james@shubin.ca</email>
</author>
<published>2019-11-13T00:47:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1f9247a3bd809b770bf9acfa0877467621a76d69'/>
<id>urn:sha1:1f9247a3bd809b770bf9acfa0877467621a76d69</id>
<content type='text'>
Signed-off-by: James Shubin &lt;james@shubin.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>completion: learn to complete `git rebase --onto=`</title>
<updated>2019-11-12T04:45:47Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-11-11T21:25:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c1ce9c06d0a0e8ad473bdbe800e8e089b8314e24'/>
<id>urn:sha1:c1ce9c06d0a0e8ad473bdbe800e8e089b8314e24</id>
<content type='text'>
In 2b9bd488ae ("completion: teach rebase to use __gitcomp_builtin",
2019-09-12), the completion script learned to complete rebase using
__gitcomp_builtin(). However, this resulted in `--onto=` being suggested
instead of `--onto `.

Before, when there was a space, we'd start a new word and, as a result,
fallback to __git_complete_refs() and `--onto` would be completed this
way. However, now we match the `--*` case which does not know how to
offer completions for refs.

Teach _git_rebase() to complete refs in the `--onto=` case so that we
fix this regression.

Reported-by: Paul Jolly &lt;paul@myitcv.io&gt;
Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix spelling errors in code comments</title>
<updated>2019-11-10T07:00:54Z</updated>
<author>
<name>Elijah Newren</name>
<email>newren@gmail.com</email>
</author>
<published>2019-11-05T17:07:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=15beaaa3d1f6b555900446deb5e376b4f806d734'/>
<id>urn:sha1:15beaaa3d1f6b555900446deb5e376b4f806d734</id>
<content type='text'>
Reported-by: Jens Schleusener &lt;Jens.Schleusener@fossies.org&gt;
Signed-off-by: Elijah Newren &lt;newren@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>submodule: teach set-url subcommand</title>
<updated>2019-10-30T03:48:45Z</updated>
<author>
<name>Denton Liu</name>
<email>liu.denton@gmail.com</email>
</author>
<published>2019-10-29T17:01:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=26b061007c1259ed4692554994961dd26874e63e'/>
<id>urn:sha1:26b061007c1259ed4692554994961dd26874e63e</id>
<content type='text'>
Currently, in the event that a submodule's upstream URL changes, users
have to manually alter the URL in the .gitmodules file then run
`git submodule sync`. Let's make that process easier.

Teach submodule the set-url subcommand which will automatically change
the `submodule.$name.url` property in the .gitmodules file and then run
`git submodule sync` to complete the process.

Signed-off-by: Denton Liu &lt;liu.denton@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
