Re: How does git track history overwrites?
- From
Jens Tröger <jens.troeger@light-speed.de>
- Date
- May 25, 2026, 23:20 UTC
- Message-ID
- <ahTZN7BurySMbEgM@light-speed.de>
- In-Reply-To
- <xmqqfr3fnl2n.fsf@gitster.g>
Hello Junio,
> Sorry, I may have been unclear. I specifically meant the "grafted, > " part in the message. I know how "git log" output looks like ;-)
The “grafted” too was part of the git log output; here is the complete cmd line output:
/tmp/bla > git log
commit fda77690955e9b63c6687d8806bafd56a526e45f (grafted, HEAD)
Author: Adam Johnson <me@adamj.eu>
Date: Mon Sep 8 16:31:35 2025 +0100Version 1.20.0
On *why* the “grafted” is there in the first place, I suspect that’s got to do with the fetch --depth=1 and that previous history isn’t available in the shallow repo clone.
Cheers, Jens