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

Re: git rev-list --no-walk RANGE not working as documented

From
KHKristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>
Date
Oct 1, 2024, 15:04 UTC
Message-ID
<7fddacf9-55f6-4520-a288-279d3784badb@app.fastmail.com>
In-Reply-To
<24417-1676937251-531825@sneakemail.com>
On Tue, Feb 21, 2023, at 00:54, squeaky wrote:
Show 45 quoted lines
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
>
> What did you do before the bug happened? (Steps to reproduce your issue)
>
> git rev-list HERE..THERE --no-walk
>
> What did you expect to happen? (Expected behavior)
>
> Show the commits between HERE and THERE.
>
> What happened instead? (Actual behavior)
>
> Only THERE is shown.
>
> What's different between what you expected and what actually happened?
>
> The documentation for --no-walk says, "This has no effect if a range is
> specified."
> Since HERE..THERE is a range, --no-walk should have no effect. This
> isn't working as documented.
>
> Anything else you want to add:
>
> Please review the rest of the bug report below.
> You can delete any lines you don't wish to share.
>
>
> [System Info]
> git version:
> git version 2.39.2.501.gd9d677b2d8
> cpu: x86_64
> built from commit: d9d677b2d8cc5f70499db04e633ba7a400f64cbf
> sizeof-long: 8
> sizeof-size_t: 8
> shell-path: /bin/sh
> uname: Linux 6.1.6-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Sat Jan 14
> 16:55:06 UTC 2023 x86_64
> compiler info: gnuc: 12.2
> libc info: glibc: 2.36
> $SHELL (typically, interactive shell): /bin/bash
>
>
> [Enabled Hooks]
> [root@xps git]
Hi, I get different results based on the order:
    git rev-list HERE..THERE --no-walk
This (like you say) only outputs “there”.
But this one outputs several:
    git rev-list --no-walk HERE..THERE
-- 
Kristoffer Haugsbakk
Previous: squeakyNext: Junio C Hamano
Message 2 of 3 in “git rev-list --no-walk RANGE not working as documented”
  1. squeakyFeb 20, 2023
  2. Kristoffer HaugsbakkOct 1, 2024
  3. Junio C HamanoOct 2, 2024

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.