We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git-replace
git2 does not return the new values for objects replaced via git-replace command.
git2
cd $(mktemp -d) git init . git commit --allow-empty -m 'test: test commit'
log example works fine:
log
$ cargo run --example log -- --git-dir /tmp/<path> commit 37c00d39b18b49ae5819b798b2b3256b4169223b Author: Orhun Parmaksız <[email protected]> Date: Sun Sep 1 15:25:43 2024 +0300 test: test commit
Then edit the last commit via git-replace:
git replace --edit HEAD # e.g. change "test" -> "best"
log example still shows the old commit message:
Whereas git log command shows the replaced commit message (it also says "replaced")
git log
$ git log commit 37c00d39b18b49ae5819b798b2b3256b4169223b (HEAD -> master, replaced) Author: Orhun Parmaksız <[email protected]> Date: Sun Sep 1 12:25:43 2024 +0300 test: best commit
Please see orhun/git-cliff#826
Presumably an extra lookup query needs to happen for every object used to get the replacements (if any).
The text was updated successfully, but these errors were encountered:
git replace
It seems like the upstream libgit2 does not yet support it: libgit2/libgit2#1730
Sorry, something went wrong.
Thanks! Yea, closing as this looks like an upstream issue.
See you guys in another 10 years 😄
No branches or pull requests
Description
git2
does not return the new values for objects replaced viagit-replace
command.Reproduce steps
log
example works fine:Then edit the last commit via
git-replace
:git replace --edit HEAD # e.g. change "test" -> "best"
log
example still shows the old commit message:Whereas
git log
command shows the replaced commit message (it also says "replaced")Additional context
Please see orhun/git-cliff#826
The text was updated successfully, but these errors were encountered: