-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: Display autostash in RevisionGrid #12200
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
Conversation
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.
I never felt I wanted this. Any more motivation?
Probably OK regardless, not intrusive
But only minor comments
Does that make sense and won't it be to difficult to display the branch as grey, like a stash (to not be confused by thinking it is a real branch)? |
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.
Are there any tests we could add to FormBrowseTests
(there are some stash related tests in there)?
long now = DateTimeUtils.ToUnixTime(File.GetLastWriteTime(autoStashFileName)); | ||
GitRevision autoStashRevision = new(autoStashCommitId) | ||
{ | ||
AuthorUnixTime = now, |
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.
Add Author = "git",
?
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.
It is still the current user that makes the commit (autostash)
I rather have that blank:#12200 (comment)
Proposed changes
GitRevision
from information about autostash in.git/rebase-merge
folderUsecase:
Auto-stashed changes had been unreachable until the rebase was finished.
Displaying the "Autostash" revision enables workflows like:
If one wants to amend a former commit, then just edit that commit (context menu, a, e), cherry-pick the changes from the autostash and amend the commit.
Screenshots
Before
After
Test methodology
Merge strategy
I agree that the maintainer squash merge this PR (if the commit message is clear).
✒️ I contribute this code under The Developer Certificate of Origin.