Merge branch 'am/pathspec-from-file'
An earlier series to teach "--pathspec-from-file" to "git commit" forgot to make the option incompatible with "--all", which has been corrected. * am/pathspec-from-file: commit: forbid --pathspec-from-file --allmaint
						commit
						ff0cb70d45
					
				|  | @ -347,6 +347,9 @@ static const char *prepare_index(int argc, const char **argv, const char *prefix | |||
| 		if (interactive) | ||||
| 			die(_("--pathspec-from-file is incompatible with --interactive/--patch")); | ||||
|  | ||||
| 		if (all) | ||||
| 			die(_("--pathspec-from-file with -a does not make sense")); | ||||
|  | ||||
| 		if (pathspec.nr) | ||||
| 			die(_("--pathspec-from-file is incompatible with pathspec arguments")); | ||||
|  | ||||
|  |  | |||
|  | @ -127,4 +127,10 @@ test_expect_success 'only touches what was listed' ' | |||
| 	verify_expect | ||||
| ' | ||||
|  | ||||
| test_expect_success '--pathspec-from-file and --all cannot be used together' ' | ||||
| 	restore_checkpoint && | ||||
| 	test_must_fail git commit --pathspec-from-file=- --all -m "Commit" 2>err && | ||||
| 	test_i18ngrep "[-]-pathspec-from-file with -a does not make sense" err | ||||
| ' | ||||
|  | ||||
| test_done | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Junio C Hamano
						Junio C Hamano