Hello,
First, thank you for this very nice project, it really improves many git commands output!
I recently noticed that when a submodule is modified, the 'diff' shows truncated SHA, e.g.
Δ kernelspace
1234567..7654321
Limiting the output to 7 chars is an issue with repos having a lot of commits (e.g. the Linux kernel) and you can get errors like this one if you are unlucky:
error: short object ID 1234567 is ambiguous
hint: The candidates are:
hint: 1234567xxxxxx commit (...)
hint: 1234567yyyyyy tree
It looks like the limitation to 7 chars is hardcoded:
|
self.config |
|
.minus_style |
|
.paint(minus_commit.chars().take(7).collect::<String>()), |
|
self.config |
|
.plus_style |
|
.paint(commit.chars().take(7).collect::<String>()), |
Could it be possible to make this number configurable?
Or showing more chars by default? For the Linux kernel, they recommend to use min 12 digits (but this number might increase in the future)
Hello,
First, thank you for this very nice project, it really improves many git commands output!
I recently noticed that when a submodule is modified, the 'diff' shows truncated SHA, e.g.
Limiting the output to 7 chars is an issue with repos having a lot of commits (e.g. the Linux kernel) and you can get errors like this one if you are unlucky:
It looks like the limitation to 7 chars is hardcoded:
delta/src/handlers/submodule.rs
Lines 39 to 44 in ce41a39
Could it be possible to make this number configurable?
Or showing more chars by default? For the Linux kernel, they recommend to use min 12 digits (but this number might increase in the future)