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

Re: feature request: git-log should accept sth like v2.6.26-rc8-227

From
Dmitry Potapov <dpotapov@gmail.com>
Date
Jul 11, 2008, 14:44 UTC
Message-ID
<37fcd2780807110744k3b2a332csdf788dabd172622c@mail.gmail.com>
In-Reply-To
<200807111539.06606.toralf.foerster@gmx.de>
On Fri, Jul 11, 2008 at 5:39 PM, Toralf Förster <toralf.foerster@gmx.de> wrote:
Show 6 quoted lines
>
> Ok, following the thread I understand why this feature isn't wanted by all. But
> for the given example (where I only pulled from another git tree) this could
> work, isn't it : ?
>
> tfoerste@n22 ~/devel/linux-2.6 $ git-log v2.6.26-rc9.. | perl -e '@c = grep { /^commit/ } <>; print map { $#c - $i++ . "\t" . $_ } @c'
No, it does not. Running your script, I have

... 56 commit 803a9067e19714ea7b7da760fe92f0d53bfa6994 ...

Now, let's see what git-describe thinks about it $ git describe 803a9067e19714ea7b7da760fe92f0d53bfa6994 v2.6.26-rc9-38-g803a906

Your script is obviously incorrect. It is written in the assumption that history is linear, but it is not. Even if you pull only from one repo, this repo still contains *many* branches. Along any branch, you may have the same number.

Dmitry
Previous: Toralf FörsterNext: Toralf Förster
Message 15 of 19 in “feature request: git-log should accept sth like v2.6.26-rc8-227”
  1. Toralf FörsterJul 10, 2008
  2. Junio C HamanoJul 10, 2008
  3. Jakub NarebskiJul 10, 2008
  4. Toralf FörsterJul 10, 2008
  5. Junio C HamanoJul 10, 2008
  6. Johannes SchindelinJul 10, 2008
  7. Junio C HamanoJul 10, 2008
  8. Jakub NarebskiJul 10, 2008
  9. Johannes SchindelinJul 10, 2008
  10. Linus TorvaldsJul 10, 2008
  11. Johannes SchindelinJul 10, 2008
  12. Toralf FörsterJul 11, 2008
  13. Johannes SchindelinJul 11, 2008
  14. Toralf FörsterJul 11, 2008
  15. Dmitry PotapovJul 11, 2008
  16. Toralf FörsterJul 11, 2008
  17. Dmitry PotapovJul 11, 2008
  18. Johannes SchindelinJul 11, 2008
  19. Johannes SchindelinJul 11, 2008

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.