Closed
Description
Current behavior 😯
cargo install gitoxide
didn't work immediately because it requirescmake
, even with default features disabledgix commit-graph list
yields the error\Error: a commitgraph is required, but none was found
Caused by:
0: Could not open commit-graph file at './.git/objects/info/commit-graphs/commit-graph-chain'
1: No such file or directory (os error 2)- So maybe I need to run
gix corpus run
first? Oh, that fails as well:Error: GIX_VERSION must be set in build-script
Expected behavior 🤔
I was trying to find out in how far gix
supports replacement objects. I am none the wiser, it is not clear how to display a commit log to find out for example and the documentation is not really helpful (README mentions gix-traverse
but gix traverse
is not a commend for example?)
Git behavior
git log
shows a commit log including the replaced objects
Steps to reproduce 🕹
cd $(mktemp -d)
git init .
git commit --allow-empty -m 'test commit'
git replace --edit HEAD # e.g. change 'test' to 'best'
sudo apt install cmake
# install gitoxide
cargo install gitoxide
gix commit-graph list
# etc