-
Notifications
You must be signed in to change notification settings - Fork 570
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7271 from gitbutlerapp/advanced-committing
advanced committing
- Loading branch information
Showing
16 changed files
with
1,300 additions
and
1,102 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Binary file not shown.
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,19 @@ | ||
#!/bin/bash | ||
|
||
set -eu -o pipefail | ||
|
||
git init -q non-cone | ||
(cd non-cone | ||
touch a b | ||
mkdir c1 | ||
(cd c1 && touch a b && mkdir c2 && cd c2 && touch a b) | ||
(cd c1 && mkdir c3 && cd c3 && touch a b) | ||
mkdir d | ||
(cd d && touch a b && mkdir c4 && cd c4 && touch a b c5) | ||
|
||
git add . | ||
git commit -m "init" | ||
|
||
git sparse-checkout set c1/c2 --sparse-index | ||
) | ||
|
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
26 changes: 26 additions & 0 deletions
26
crates/but-workspace/tests/fixtures/scenario/two-signed-commits-with-line-offset.sh
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,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
### Description | ||
# A single branch with two signed commits. The first commit has 10 lines, the second adds | ||
# another 10 lines to the top of the file. | ||
# Large numbers are used make fuzzy-patch application harder. | ||
set -eu -o pipefail | ||
|
||
ssh-keygen -t rsa -b 2048 -C "[email protected]" -N "" -f signature.key | ||
|
||
git init | ||
git config gpg.format ssh | ||
git config user.signingKey "$PWD/signature.key" | ||
git config GitButler.signCommits true | ||
|
||
export "GIT_CONFIG_COUNT=2" | ||
export "GIT_CONFIG_KEY_0=commit.gpgsign" | ||
export "GIT_CONFIG_VALUE_0=true" | ||
export "GIT_CONFIG_KEY_1=init.defaultBranch" | ||
export "GIT_CONFIG_VALUE_1=main" | ||
|
||
seq 10 20 >file | ||
git add file && git commit -m init && git tag first-commit | ||
|
||
seq 20 >file && git commit -am "insert 10 lines to the top" | ||
|
Oops, something went wrong.