mergiraf solve
: rename --keep
to --stdout
#263
Labels
No labels
Compat/Breaking
Kind
Bad merge
Kind
Bug
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
New language
Kind
Security
Kind
Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mergiraf/mergiraf#263
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The functionality of
--keep
is usually called--dry-run
in other CLI tools. So I was looking for the latter, and only found the former after a longer-than-necessary search. Therefore, I'd propose we rename the flag.We could still keep the old name as an alias, which clap allows
Renametomergiraf solve --keep
to--dry-run
?mergiraf solve
: rename--keep
to--dry-run
?Why not! It's definitely confusing that we have
--keep
and--keep-backup
, they are too similar.To me
--dry-run
doesn't feel 100% right because that sounds to me as if the tool would just do the planning of the resolution without carrying it out - but it actually does do the entire computation and just outputs it somewhere else. To me--stdout
would perhaps feel more natural… But I'm also happy with--dry-run
.Fair point!
Yeah, that does seem to be the better option. Git uses
-p
as the corresponding short flag, so we could incorporate that as wellSpeaking of Git's conventions, they actually use
--marker-size
instead of--conflict-marker-size
(ingit-merge-file
at least) -- it might make sense to follow their example there as welltomergiraf solve
: rename--keep
to--dry-run
?mergiraf solve
: rename--keep
to--stdout
?tomergiraf solve
: rename--keep
to--stdout
?mergiraf solve
: rename--keep
to--stdout
--keep
to--stdout
#290