Commit f8f4d9b
committed
cmd/git(fix[GitNotesManager.merge]): Handle commit/abort forms correctly
why: Git's `notes merge` has three mutually exclusive forms that were
not properly supported - the API required notes_ref always, but --commit
and --abort forms take no ref argument.
what:
- Make notes_ref optional (None default)
- Add validation for mutual exclusivity of commit, abort, and notes_ref
- Only append notes_ref when provided and not using commit/abort
- Prevent strategy from being used with commit/abort1 parent 911dd2c commit f8f4d9b
1 file changed
Lines changed: 30 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7383 | 7383 | | |
7384 | 7384 | | |
7385 | 7385 | | |
7386 | | - | |
| 7386 | + | |
7387 | 7387 | | |
7388 | 7388 | | |
7389 | 7389 | | |
| |||
7396 | 7396 | | |
7397 | 7397 | | |
7398 | 7398 | | |
| 7399 | + | |
| 7400 | + | |
| 7401 | + | |
| 7402 | + | |
| 7403 | + | |
| 7404 | + | |
7399 | 7405 | | |
7400 | 7406 | | |
7401 | 7407 | | |
7402 | | - | |
| 7408 | + | |
| 7409 | + | |
7403 | 7410 | | |
7404 | 7411 | | |
| 7412 | + | |
7405 | 7413 | | |
7406 | | - | |
| 7414 | + | |
7407 | 7415 | | |
7408 | | - | |
| 7416 | + | |
7409 | 7417 | | |
7410 | 7418 | | |
7411 | 7419 | | |
| |||
7419 | 7427 | | |
7420 | 7428 | | |
7421 | 7429 | | |
| 7430 | + | |
| 7431 | + | |
| 7432 | + | |
| 7433 | + | |
| 7434 | + | |
| 7435 | + | |
| 7436 | + | |
| 7437 | + | |
| 7438 | + | |
| 7439 | + | |
| 7440 | + | |
| 7441 | + | |
| 7442 | + | |
| 7443 | + | |
| 7444 | + | |
| 7445 | + | |
7422 | 7446 | | |
7423 | 7447 | | |
7424 | 7448 | | |
| |||
7432 | 7456 | | |
7433 | 7457 | | |
7434 | 7458 | | |
7435 | | - | |
| 7459 | + | |
| 7460 | + | |
7436 | 7461 | | |
7437 | 7462 | | |
7438 | 7463 | | |
| |||
0 commit comments