git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-svn: Add 'find-rev' command

From
Adam Roben <aroben@apple.com>
Date
Apr 29, 2007, 20:31 UTC
Message-ID
<31790C65-1FE6-4BD4-B8D3-B285F0F0422A@apple.com>
In-Reply-To
<20070429183515.GF12375@untitled>
On Apr 29, 2007, at 11:35 AM, Eric Wong wrote:
> Also, if you have time, can you get this (and 'log') to understand
> revision numbers even if they're not from the working HEAD?  Thanks.
    Won't the following code accomplish that for find-rev? Perhaps I  
misunderstand you.
Show 9 quoted lines
>
>> +sub cmd_find_rev {
>> +	my $revision_or_hash = shift;
>> +	my $result;
>> +	if ($revision_or_hash =~ /^r\d+$/) {
>> +		my $head = shift;
>> +		$head ||= 'HEAD';
>> +		my @refs;
>> +		my (undef, undef, undef, $gs) = working_head_info($head, \@refs);
-Adam
Previous: Eric WongNext: Eric Wong
Message 3 of 4 in “git-svn: Add 'find-rev' command”
  1. git-svn: Add 'find-rev' commandAdam Roben, Apr 29, 2007
  2. Eric WongApr 29, 2007
  3. Adam RobenApr 29, 2007
  4. Eric WongApr 29, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.