-
-
Notifications
You must be signed in to change notification settings - Fork 607
Feat 1757 add signoff option #1758
New issue
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
Merged
extrawurst
merged 13 commits into
gitui-org:master
from
domtac:feat-1757-add_signoff_option
Jul 29, 2023
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
9cc5bb3
feat: add signoff key to commit editor
4dcb5a7
feat: Adding sign off string manually
4d421bb
chore: refactores sync::commit to keep function's signature stable
60d181c
fix: typo in function name
0e5be1a
fix: add sign-off to message
3a656f2
test: add unit test for creating the signed-off commit message
0cf23f2
docs: added sign off feature to changelog
34dacf0
fix(CHANGELOG): formatting
176bc82
refactor: sign-off is not a state, just adds signature to message
24acc64
fix: message creation
f411c9c
refactor: undid changes to asyncgit
ec0b595
fix(changelog): format
0d2d578
refactor: build in proposed changes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -980,6 +980,18 @@ pub mod commands { | |
CMD_GROUP_COMMIT_POPUP, | ||
) | ||
} | ||
pub fn commit_signoff( | ||
key_config: &SharedKeyConfig, | ||
) -> CommandText { | ||
CommandText::new( | ||
format!( | ||
"Sing-off [{}]", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @matthiasbeyer this PR is already merged, could you open a PR fixing the typos? |
||
key_config.get_hint(key_config.keys.toggle_signoff), | ||
), | ||
"sign-off commit (-s option)", | ||
CMD_GROUP_COMMIT_POPUP, | ||
) | ||
} | ||
pub fn edit_item(key_config: &SharedKeyConfig) -> CommandText { | ||
CommandText::new( | ||
format!( | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's the
:
missing after the key of the trailer.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reported in #2196.