<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-rev-parse.txt, branch v2.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-07-15T17:30:54Z</updated>
<entry>
<title>rev-parse --parseopt: allow [*=?!] in argument hints</title>
<updated>2015-07-15T17:30:54Z</updated>
<author>
<name>Ilya Bobyr</name>
<email>ilya.bobyr@gmail.com</email>
</author>
<published>2015-07-14T08:17:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2d893dff4c3c49750557da7a1701b46c1fe95844'/>
<id>urn:sha1:2d893dff4c3c49750557da7a1701b46c1fe95844</id>
<content type='text'>
A line in the input to "rev-parse --parseopt" describes an option by
listing a short and/or long name, optional flags [*=?!], argument hint,
and then whitespace and help string.

We did not allow any of the [*=?!] characters in the argument hints.
The following input

    pair=key=value  equals sign in the hint

used to generate a help line like this:

    --pair=key &lt;value&gt;   equals sign in the hint

and used to expect "pair=key" as the argument name.

That is not very helpful as we generally do not want any of the [*=?!]
characters in the argument names.  But we do want to use at least the
equals sign in the argument hints.

Update the parser to make long argument names stop at the first [*=?!]
character.

Add test case with equals sign in the argument hint and update the test
to perform all the operations in test_expect_success matching the
t/README requirements and allowing commands like

    ./t1502-rev-parse-parseopt.sh --run=1-2

to stop at the test case 2 without any further modification of the test
state area.

Signed-off-by: Ilya Bobyr &lt;ilya.bobyr@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/asciidoc-markup-fix'</title>
<updated>2015-05-22T19:41:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-05-22T19:41:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d1caa5895458443cc9535b6fda6ff8480383471b'/>
<id>urn:sha1:d1caa5895458443cc9535b6fda6ff8480383471b</id>
<content type='text'>
Various documentation mark-up fixes to make the output more
consistent in general and also make AsciiDoctor (an alternative
formatter) happier.

* jk/asciidoc-markup-fix:
  doc: convert AsciiDoc {?foo} to ifdef::foo[]
  doc: put example URLs and emails inside literal backticks
  doc: drop backslash quoting of some curly braces
  doc: convert \--option to --option
  doc/add: reformat `--edit` option
  doc: fix length of underlined section-title
  doc: fix hanging "+"-continuation
  doc: fix unquoted use of "{type}"
  doc: fix misrendering due to `single quote'
</content>
</entry>
<entry>
<title>doc: convert \--option to --option</title>
<updated>2015-05-13T05:14:46Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-05-13T05:01:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1c262bb7b2968a8eecca3fed366638e0779184bb'/>
<id>urn:sha1:1c262bb7b2968a8eecca3fed366638e0779184bb</id>
<content type='text'>
Older versions of AsciiDoc would convert the "--" in
"--option" into an emdash. According to 565e135
(Documentation: quote double-dash for AsciiDoc, 2011-06-29),
this is fixed in AsciiDoc 8.3.0. According to bf17126, we
don't support anything older than 8.4.1 anyway, so we no
longer need to worry about quoting.

Even though this does not change the output at all, there
are a few good reasons to drop the quoting:

  1. It makes the source prettier to read.

  2. We don't quote consistently, which may be confusing when
     reading the source.

  3. Asciidoctor does not like the quoting, and renders a
     literal backslash.

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>doc: fix unquoted use of "{type}"</title>
<updated>2015-05-13T05:13:40Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-05-13T04:58:06Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b50bfb8fd5357ec7902ff2f4a4fead9dc907f788'/>
<id>urn:sha1:b50bfb8fd5357ec7902ff2f4a4fead9dc907f788</id>
<content type='text'>
Curly braces open an "attribute" in AsciiDoc; if there's no
such attribute, strange things may happen. In this case, the
unquoted "{type}" causes AsciiDoc to omit an entire line of
text from the output. We can fix it by putting the whole
phrase inside literal backticks (which also lets us get rid
of ugly backslash escaping).

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>setup.c: support multi-checkout repo setup</title>
<updated>2014-12-01T19:00:15Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-11-30T08:24:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=31e26ebcb512ad234d9725120fb4f5670ff75625'/>
<id>urn:sha1:31e26ebcb512ad234d9725120fb4f5670ff75625</id>
<content type='text'>
The repo setup procedure is updated to detect $GIT_DIR/commondir and
set $GIT_COMMON_DIR properly.

The core.worktree is ignored when $GIT_COMMON_DIR is set. This is
because the config file is shared in multi-checkout setup, but
checkout directories _are_ different. Making core.worktree effective
in all checkouts mean it's back to a single checkout.

Helped-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
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_path(): be aware of file relocation in $GIT_DIR</title>
<updated>2014-12-01T19:00:11Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2014-11-30T08:24:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=557bd833bb4e2bd1f109f6f911ab517b6ba3d27a'/>
<id>urn:sha1:557bd833bb4e2bd1f109f6f911ab517b6ba3d27a</id>
<content type='text'>
We allow the user to relocate certain paths out of $GIT_DIR via
environment variables, e.g. GIT_OBJECT_DIRECTORY, GIT_INDEX_FILE and
GIT_GRAFT_FILE. Callers are not supposed to use git_path() or
git_pathdup() to get those paths. Instead they must use
get_object_directory(), get_index_file() and get_graft_file()
respectively. This is inconvenient and could be missed in review (for
example, there's git_path("objects/info/alternates") somewhere in
sha1_file.c).

This patch makes git_path() and git_pathdup() understand those
environment variables. So if you set GIT_OBJECT_DIRECTORY to /foo/bar,
git_path("objects/abc") should return /foo/bar/abc. The same is done
for the two remaining env variables.

"git rev-parse --git-path" is the wrapper for script use.

This patch kinda reverts a0279e1 (setup_git_env: use git_pathdup
instead of xmalloc + sprintf - 2014-06-19) because using git_pathdup
here would result in infinite recursion:

  setup_git_env() -&gt; git_pathdup("objects") -&gt; .. -&gt; adjust_git_path()
  -&gt; get_object_directory() -&gt; oops, git_object_directory is NOT set
  yet -&gt; setup_git_env()

I wanted to make git_pathdup_literal() that skips adjust_git_path().
But that won't work because later on when $GIT_COMMON_DIR is
introduced, git_pathdup_literal("objects") needs adjust_git_path() to
replace $GIT_DIR with $GIT_COMMON_DIR.

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>Documentation: typofixes</title>
<updated>2014-11-04T21:14:44Z</updated>
<author>
<name>Thomas Ackermann</name>
<email>th.acker@arcor.de</email>
</author>
<published>2014-11-03T20:37:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f745acb028ee8f7dcd1c8f10127b8feeaa255cf7'/>
<id>urn:sha1:f745acb028ee8f7dcd1c8f10127b8feeaa255cf7</id>
<content type='text'>
In addition to fixing trivial and obvious typos, be careful about
the following points:

 - Spell ASCII, URL and CRC in ALL CAPS;
 - Spell Linux as Capitalized;
 - Do not omit periods in "i.e." and "e.g.".

Signed-off-by: Thomas Ackermann &lt;th.acker@arcor.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: a note about stdout for git rev-parse --verify --quiet</title>
<updated>2014-09-15T22:34:31Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2014-09-15T19:07:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=56625df74c969885c0c735203283bb1ebe1897ec'/>
<id>urn:sha1:56625df74c969885c0c735203283bb1ebe1897ec</id>
<content type='text'>
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>Sync with maint</title>
<updated>2014-07-22T18:00:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-07-22T18:00:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=247b4d5f3807dc3c2230bb4bf497f84a1fc59e49'/>
<id>urn:sha1:247b4d5f3807dc3c2230bb4bf497f84a1fc59e49</id>
<content type='text'>
* maint:
  Documentation: fix missing text for rev-parse --verify
</content>
</entry>
<entry>
<title>Merge branch 'maint-1.9' into maint</title>
<updated>2014-07-22T17:17:34Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-07-22T17:17:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=bba6acb335e296ed692b4aea224b50fd098f693c'/>
<id>urn:sha1:bba6acb335e296ed692b4aea224b50fd098f693c</id>
<content type='text'>
* maint-1.9:
  Documentation: fix missing text for rev-parse --verify
</content>
</entry>
</feed>
