-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It didn't sit right to land the configuration system change without actual configuration options. Add the ability to make the `-a` flag in `gs ll` and `gs ls` default to true by setting `spice.log.all`, and make documentation updates to ensure that all configuration options are documented.
- Loading branch information
Showing
7 changed files
with
136 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
kind: Added | ||
body: Add `spice.log.all` option to always set --all for `gs log long` and `gs log short`. | ||
time: 2024-08-07T05:31:24.566371-07:00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# Different scenarios for 'log long' | ||
|
||
as 'Test <[email protected]>' | ||
at '2024-08-07T06:05:04Z' | ||
|
||
mkdir repo | ||
cd repo | ||
git init | ||
git commit --allow-empty -m 'Initial commit' | ||
gs repo init | ||
|
||
# create a stack: feat1 -> feat2 -> feat3 | ||
gs bc feat1 -m 'feat1' | ||
gs bc feat2 -m 'feat2' | ||
gs bc feat3 -m 'feat3' | ||
|
||
# go back to feat1, and create feat4 and feat5 | ||
gs bco feat1 | ||
gs bc feat4 -m 'feat4' | ||
gs bc feat5 -m 'feat5' | ||
|
||
gs bco feat3 | ||
|
||
# log without the spice.log.all option. | ||
gs ls | ||
cmp stderr $WORK/golden/ls-before.txt | ||
|
||
gs ll | ||
cmp stderr $WORK/golden/ll-before.txt | ||
|
||
# log with the spice.log.all option. | ||
git config spice.log.all true | ||
|
||
gs ls | ||
cmp stderr $WORK/golden/ls-after.txt | ||
|
||
gs ll | ||
cmp stderr $WORK/golden/ll-after.txt | ||
|
||
-- golden/ls-before.txt -- | ||
┏━■ feat3 ◀ | ||
┏━┻□ feat2 | ||
┏━┻□ feat1 | ||
main | ||
-- golden/ll-before.txt -- | ||
┏━■ feat3 ◀ | ||
┃ 7b5eba4 feat3 (now) | ||
┏━┻□ feat2 | ||
┃ 562c8c6 feat2 (now) | ||
┏━┻□ feat1 | ||
┃ ecc906e feat1 (now) | ||
main | ||
-- golden/ls-after.txt -- | ||
┏━■ feat3 ◀ | ||
┏━┻□ feat2 | ||
┃ ┏━□ feat5 | ||
┣━┻□ feat4 | ||
┏━┻□ feat1 | ||
main | ||
-- golden/ll-after.txt -- | ||
┏━■ feat3 ◀ | ||
┃ 7b5eba4 feat3 (now) | ||
┏━┻□ feat2 | ||
┃ 562c8c6 feat2 (now) | ||
┃ ┏━□ feat5 | ||
┃ ┃ 874abc7 feat5 (now) | ||
┣━┻□ feat4 | ||
┃ 0eb14d6 feat4 (now) | ||
┏━┻□ feat1 | ||
┃ ecc906e feat1 (now) | ||
main |