[RFC] git-ghost: preserve “why” on deleted lines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I hate losing the why behind a deleted line.

When you drop code in a review, being able to attach a brief comment
to that line would save a lot of head-scratching.

Git-ghost – see the remnants of days past in a file.

git-ghost hooks into commit to stash deleted lines in a `.ghost` file
and enables maintainers to prompt for a short reason. Later you can run:

    git ghost view <file>

to see what vanished and why. Blame also becomes easier.

No core changes—pure userland. Repos can opt in or out. Also helps AI
agents make sense of code history.

Could be made in thousands of ways, but unless the deleted rows are saved
as actual file-bound information, understanding it later and building tools
for it is much harder. `git note` could be used, but doesn't really solve
the issue.

Comments?

Max Rhodin
max@xxxxx





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux