-
Notifications
You must be signed in to change notification settings - Fork 604
commit hunk selections #7893
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
commit hunk selections #7893
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@Byron is attempting to deploy a commit to the GitButler Team on Vercel. A member of the Team first needs to authorize it. |
cd6cfa3
to
2bafd30
Compare
crates/but-core/src/lib.rs
Outdated
@@ -140,6 +140,9 @@ pub enum UnifiedDiff { | |||
Patch { | |||
/// All non-overlapping hunks, including their context lines. | |||
hunks: Vec<unified_diff::DiffHunk>, | |||
/// If `true`, a binary to text filter (`textconv` in Git config) was used to obtain the `hunks` in the diff. | |||
/// This means hunk-based operations must be disabled. | |||
is_result_of_binary_to_text_conversion: bool, |
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.
Hi @estib-vega , here is the promised flag that the UI would use to determine if hunk-selections of any kind should be allowed. That's the case only if this is false
.
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.
Could you add a serde rename to that it's camelCased, please? :)
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.
Hehe, right, we didn't notice before because it was naturally camelCase.
Should be fixed now.
949b2f0
to
10c61e3
Compare
The UI may or may not surface it, but it definitely doesn't show in the logs as return values won't show.
Add V3 facilities for discarding changes in the worktree or index, this time it's about hunks specifically.
Follow-up of #7807.
Tasks
gix
frommain
but-cli
supports committing hunk headersNext PR
- Once that is clear, it should fail as it needs a base-substitute.