<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/builtin/rev-parse.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>2012-09-07T18:09:18Z</updated>
<entry>
<title>Merge branch 'jc/dotdot-is-parent-directory'</title>
<updated>2012-09-07T18:09:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-09-07T18:09:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7764a3b35c53b6859963ddad92bfc90563ac8baa'/>
<id>urn:sha1:7764a3b35c53b6859963ddad92bfc90563ac8baa</id>
<content type='text'>
"git log .." errored out saying it is both rev range and a path when
there is no disambiguating "--" is on the command line.  Update the
command line parser to interpret ".." as a path in such a case.

* jc/dotdot-is-parent-directory:
  specifying ranges: we did not mean to make ".." an empty set
</content>
</entry>
<entry>
<title>specifying ranges: we did not mean to make ".." an empty set</title>
<updated>2012-08-23T21:37:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-05-02T20:39:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=003c84f6d2b9e9c4d5bbf5262cae994bac7190cb'/>
<id>urn:sha1:003c84f6d2b9e9c4d5bbf5262cae994bac7190cb</id>
<content type='text'>
Either end of revision range operator can be omitted to default to HEAD,
as in "origin.." (what did I do since I forked) or "..origin" (what did
they do since I forked).  But the current parser interprets ".."  as an
empty range "HEAD..HEAD", and worse yet, because ".." does exist on the
filesystem, we get this annoying output:

  $ cd Documentation/howto
  $ git log .. ;# give me recent commits that touch Documentation/ area.
  fatal: ambiguous argument '..': both revision and filename
  Use '--' to separate filenames from revisions

Surely we could say "git log ../" or even "git log -- .." to disambiguate,
but we shouldn't have to.

Helped-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>i18n: rev-parse: mark parseopt strings for translation</title>
<updated>2012-08-20T19:23:20Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2012-08-20T12:32:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2c7c184c3b1e1287df6ba5b39f671c6fbd4c8518'/>
<id>urn:sha1:2c7c184c3b1e1287df6ba5b39f671c6fbd4c8518</id>
<content type='text'>
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>Merge branch 'jc/sha1-name-more'</title>
<updated>2012-07-22T19:55:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-22T19:55:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0958a24d7360759902f802744c0839c8029659d7'/>
<id>urn:sha1:0958a24d7360759902f802744c0839c8029659d7</id>
<content type='text'>
Teaches the object name parser things like a "git describe" output
is always a commit object, "A" in "git log A" must be a committish,
and "A" and "B" in "git log A...B" both must be committish, etc., to
prolong the lifetime of abbreviated object names.

* jc/sha1-name-more: (27 commits)
  t1512: match the "other" object names
  t1512: ignore whitespaces in wc -l output
  rev-parse --disambiguate=&lt;prefix&gt;
  rev-parse: A and B in "rev-parse A..B" refer to committish
  reset: the command takes committish
  commit-tree: the command wants a tree and commits
  apply: --build-fake-ancestor expects blobs
  sha1_name.c: add support for disambiguating other types
  revision.c: the "log" family, except for "show", takes committish
  revision.c: allow handle_revision_arg() to take other flags
  sha1_name.c: introduce get_sha1_committish()
  sha1_name.c: teach lookup context to get_sha1_with_context()
  sha1_name.c: many short names can only be committish
  sha1_name.c: get_sha1_1() takes lookup flags
  sha1_name.c: get_describe_name() by definition groks only commits
  sha1_name.c: teach get_short_sha1() a commit-only option
  sha1_name.c: allow get_short_sha1() to take other flags
  get_sha1(): fix error status regression
  sha1_name.c: restructure disambiguation of short names
  sha1_name.c: correct misnamed "canonical" and "res"
  ...
</content>
</entry>
<entry>
<title>Merge branch 'mm/verify-filename-fix' into maint</title>
<updated>2012-07-11T19:45:49Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-11T19:45:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9ca724933a8d50633699acf3e5731fa392e2ff36'/>
<id>urn:sha1:9ca724933a8d50633699acf3e5731fa392e2ff36</id>
<content type='text'>
"git diff COPYING HEAD:COPYING" gave a nonsense error message that
claimed that the treeish HEAD did not have COPYING in it.

* mm/verify-filename-fix:
  verify_filename(): ask the caller to chose the kind of diagnosis
  sha1_name: do not trigger detailed diagnosis for file arguments
</content>
</entry>
<entry>
<title>rev-parse --disambiguate=&lt;prefix&gt;</title>
<updated>2012-07-09T23:42:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-03T21:21:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=957d74062c1f0e92368aeda335e27d2d61f584f6'/>
<id>urn:sha1:957d74062c1f0e92368aeda335e27d2d61f584f6</id>
<content type='text'>
The new option allows you to feed an ambiguous prefix and enumerate
all the objects that share it as a prefix of their object names.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rev-parse: A and B in "rev-parse A..B" refer to committish</title>
<updated>2012-07-09T23:42:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-07-03T20:45:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c036c4c5e426cc7ee8070038607edf06ef1d661e'/>
<id>urn:sha1:c036c4c5e426cc7ee8070038607edf06ef1d661e</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mm/verify-filename-fix'</title>
<updated>2012-06-28T22:19:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-06-28T22:19:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=08080894b7bd68db413275e601286d94b40752bd'/>
<id>urn:sha1:08080894b7bd68db413275e601286d94b40752bd</id>
<content type='text'>
"git diff COPYING HEAD:COPYING" gave a nonsense error message that
claimed that the treeish HEAD did not have COPYING in it.
</content>
</entry>
<entry>
<title>verify_filename(): ask the caller to chose the kind of diagnosis</title>
<updated>2012-06-18T22:21:42Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2012-06-18T18:18:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=023e37c37780d6a56f2870a979c8eb3a9ee9a44d'/>
<id>urn:sha1:023e37c37780d6a56f2870a979c8eb3a9ee9a44d</id>
<content type='text'>
verify_filename() can be called in two different contexts. Either we
just tried to interpret a string as an object name, and it fails, so
we try looking for a working tree file (i.e. we finished looking at
revs that come earlier on the command line, and the next argument
must be a pathname), or we _know_ that we are looking for a
pathname, and shouldn't even try interpreting the string as an
object name.

For example, with this change, we get:

  $ git log COPYING HEAD:inexistant
  fatal: HEAD:inexistant: no such path in the working tree.
  Use '-- &lt;path&gt;...' to specify paths that do not exist locally.
  $ git log HEAD:inexistant
  fatal: Path 'inexistant' does not exist in 'HEAD'

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>rev-parse --show-prefix: add in trailing newline</title>
<updated>2012-04-10T16:25:35Z</updated>
<author>
<name>Ross Lagerwall</name>
<email>rosslagerwall@gmail.com</email>
</author>
<published>2012-04-09T13:27:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=658219f1c75e25adbe530a3b681ba3d2332caca6'/>
<id>urn:sha1:658219f1c75e25adbe530a3b681ba3d2332caca6</id>
<content type='text'>
Print out a trailing newline when --show-prefix is run with cwd
at the top level of the tree which results in an empty prefix.
Behavior is now like --show-cdup.

Fixes an expected failure in t1501.

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