<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/rev-parse.c, branch v0.99.8a</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v0.99.8a</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v0.99.8a'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-09-21T01:10:32Z</updated>
<entry>
<title>[PATCH] Teach "git-rev-parse" about date-based cut-offs</title>
<updated>2005-09-21T01:10:32Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-09-20T21:13:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c1babb1d65e034a058c14379eabec8eb374757ca'/>
<id>urn:sha1:c1babb1d65e034a058c14379eabec8eb374757ca</id>
<content type='text'>
This adds the options "--since=date" and "--before=date" to git-rev-parse,
which knows how to translate them into seconds since the epoch for
git-rev-list.

With this, you can do

	git log --since="2 weeks ago"

or

	git log --until=yesterday

to show the commits that have happened in the last two weeks or are
older than 24 hours, respectively.

The flags "--after=" and "--before" are synonyms for --since and --until,
and you can combine them, so

	git log --after="Aug 5" --before="Aug 10"

is a valid (but strange) thing to do.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add "--git-dir" flag to git-rev-parse</title>
<updated>2005-09-18T21:18:34Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-09-18T18:18:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a8783eeb7988a20664dade2379d380ee1a199a10'/>
<id>urn:sha1:a8783eeb7988a20664dade2379d380ee1a199a10</id>
<content type='text'>
Especially when you're deep inside the git repository, it's not all that
trivial for scripts to figure out where GIT_DIR is if it isn't set.

So add a flag to git-rev-parse to show where it is, since it will have
figured it out anyway.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Rationalize output selection in rev-parse.</title>
<updated>2005-08-24T21:30:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-24T21:30:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4866ccf0f434db118c4dcdeeab840eb4844d50a4'/>
<id>urn:sha1:4866ccf0f434db118c4dcdeeab840eb4844d50a4</id>
<content type='text'>
Earlier rounds broke 'whatchanged -p'.  In attempting to fix this,
make two axis of output selection in rev-parse orthogonal:

  --revs-only	tells it not to output things that are not revisions nor
		flags that rev-list would take.
  --no-revs	tells it not to output things that are revisions or
		flags that rev-list would take.
  --flags	tells it not to output parameters that do not start with
		a '-'.
  --no-flags	tells it not to output parameters that starts with a '-'.

So for example 'rev-parse --no-revs -p arch/i386' would yield '-p arch/i386',
while 'rev-parse --no-revs --flags -p archi/i386' would give just '-p'.

Also the meaning of --verify has been made stronger.  It now rejects
anything but a single valid rev argument.  Earlier it passed some flags
through without complaining.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Fix git-rev-parse --default and --flags handling</title>
<updated>2005-08-23T19:42:58Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-08-23T17:47:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0360e99d06acfbb0fcb72215cf6749591ee53290'/>
<id>urn:sha1:0360e99d06acfbb0fcb72215cf6749591ee53290</id>
<content type='text'>
This makes the argument to --default and any --flags arguments should up 
correctly, and makes "--" together with --flags act sanely.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Add --symbolic flag to git-rev-parse.</title>
<updated>2005-08-17T19:11:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-16T19:36:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=30b96fcef1243930497a4653c6ae47291316b6b7'/>
<id>urn:sha1:30b96fcef1243930497a4653c6ae47291316b6b7</id>
<content type='text'>
This is most useful with --all, --revs-only, --no-flags and --verify.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Make "git diff" work inside relative subdirectories</title>
<updated>2005-08-17T01:47:22Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-08-17T01:06:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d288a70030eaa5c205a72b4548635e17f8e523c0'/>
<id>urn:sha1:d288a70030eaa5c205a72b4548635e17f8e523c0</id>
<content type='text'>
We always show the diff as an absolute path, but pathnames to diff are
taken relative to the current working directory (and if no pathnames are
given, the default ends up being all of the current working directory).

Note that "../xyz" also works, so you can do

	cd linux/drivers/char
	git diff ../block

and it will generate a diff of the linux/drivers/block changes.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Update rev-parse flags list.</title>
<updated>2005-08-10T05:28:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-09T02:31:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5ccfb758b0e69b77b0ad830cc35d7770b08589eb'/>
<id>urn:sha1:5ccfb758b0e69b77b0ad830cc35d7770b08589eb</id>
<content type='text'>
I haven't audited the rev-parse users, but I am having a feeling
that many of them would choke when they expect a couple of SHA1
object names and malicious user feeds them "--max-count=6" or
somesuch to shoot himself in the foot.  Anyway, this adds a
couple of missing parameters that affect the list of revs to be
returned from rev-list, not the flags that affect how they are
presented by rev-list.  I think that is the intention, but I am
not quite sure.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Update get_sha1() to grok extended format.</title>
<updated>2005-08-05T07:51:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-04T05:15:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9938af6a85dd08436ad373fc07a1ddba8dcfa170'/>
<id>urn:sha1:9938af6a85dd08436ad373fc07a1ddba8dcfa170</id>
<content type='text'>
Everybody envies rev-parse, who is the only one that can grok
the extended sha1 format.  Move the get_extended_sha1() out of
rev-parse, rename it to get_sha1() and make it available to
everybody else.

The one I posted earlier to the list had one bug where it did
not handle a name that ends with a digit correctly (it
incorrectly tried the "Nth parent" path).  This commit fixes it.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Help scripts that use git-rev-parse to grok args with SP/TAB/LF</title>
<updated>2005-07-23T03:34:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-07-23T02:08:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5bb2c65aba9161ee77c42002009634e757005b4f'/>
<id>urn:sha1:5bb2c65aba9161ee77c42002009634e757005b4f</id>
<content type='text'>
The git-rev-parse command uses LF to separate each argument it
parses, so its users at least need to set IFS to LF to be able
to handle filenames with embedded SPs and TABs.  Some commands,
however, can take and do expect arguments with embedded LF,
notably, "-S" (pickaxe) of diff family, so even this workaround
does not work for them.

When --sq flag to git-rev-parse is given, instead of showing one
argument per line, it outputs arguments quoted for consumption
with "eval" by the caller, to remedy this situation.

As an example, this patch converts git-whatchanged to use this
new feature.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>git-rev-parse: Allow a "zeroth" parent of a commit - the commit itself.</title>
<updated>2005-07-12T01:27:25Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-07-12T01:27:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=79162bb8ad43aefb23172b9f164ea13ac2b60744'/>
<id>urn:sha1:79162bb8ad43aefb23172b9f164ea13ac2b60744</id>
<content type='text'>
This sounds nonsensical, but it's useful to make sure that the result is
a commit.

For example, "git-rev-parse v2.6.12" will return the _tag_ object for
v2.6.12, but "git-rev-parse v2.6.12^0" will return the _commit_ object
associated with that tag (and v2.6.12^1 will return the first parent).

Also, since the "parent" code will actually parse the commit, this,
together with the "--verify" flag, will verify not only that the result
is a single SHA1, but will also have verified that it's a proper commit
that we can see.
</content>
</entry>
</feed>
