From: "SZEDER Gábor" <szeder.dev@gmail.com>
To: git@vger.kernel.org
Cc: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
Subject: Re: [PATCH 0/2] line-log: small fixes
Date: Mon, 18 Aug 2025 13:25:47 +0200 [thread overview]
Message-ID: <aKMNuxb3Q95RHok1@szeder.dev> (raw)
In-Reply-To: <20250818111310.1283932-1-szeder.dev@gmail.com>
On Mon, Aug 18, 2025 at 01:13:08PM +0200, SZEDER Gábor wrote:
> On Thu, May 02, 2024 at 09:29:04PM +0300, Evgeni Chasnovski wrote:
> > Calling `git log` with several `-L` flags can result in an error.
> >
> > Steps to reproduce (on Linux):
> > - Set up repo with a history:
> > - `mkdir log-line-assert`
> > - `cd log-line-assert`
> > - `git init`
> > - `echo "Line 1\nLine 2" > file`
> > - `git add .`
> > - `git commit -m 'Commit 1'`
> > - `echo "Line 3\nLine 4\nLine 5" >> file`
> > - `git add .`
> > - `git commit -m 'Commit 2'`
> > - Execute the following command: `git log -L2,2:file -L4,4:file`
> >
> > # What did you expect to happen? (Expected behavior)
> >
> > Show log with evolution of lines 2 and 4.
> >
> > # What happened instead? (Actual behavior)
> >
> > An error with the following text:
> >
> > ```
> > git: line-log.c:73: range_set_append: Assertion `rs->nr == 0 ||
> > rs->ranges[rs->nr-1].end <= a' failed.
> > zsh: IOT instruction (core dumped) git log -L2,2:file -L4,4:file
> > ```
>
> Thanks for reporting this issue!
The original bug report is at:
https://public-inbox.org/git/CAP9Eqm1PsYBdjoVKgomJZe79_ZCOAtP4p7uvprUOerdjrcUjmQ@mail.gmail.com/
It's been quite a while since I last sent a patch to the list, and
apparently my send-email skills became somewhat rusty...
prev parent reply other threads:[~2025-08-18 11:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-18 11:13 [PATCH 0/2] line-log: small fixes SZEDER Gábor
2025-08-18 11:13 ` [PATCH 1/2] line-log: fix assertion error SZEDER Gábor
2025-08-18 19:17 ` Junio C Hamano
2025-08-18 11:13 ` [PATCH 2/2] line-log: show all line ranges touched by the same diff range SZEDER Gábor
2025-08-18 11:25 ` SZEDER Gábor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aKMNuxb3Q95RHok1@szeder.dev \
--to=szeder.dev@gmail.com \
--cc=evgeni.chasnovski@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.