gitless
gitless copied to clipboard
`gl commit -e` conflicts with `git` option
-e option is already taken in git, which may create confusion when switching back and forth. How about -x instead?
The problem with using -x is that it would break the convention that the short form of an option corresponds to the first letter of its long form (-i is short for --include, -o for --only, and -e for --exclude) and it seems to me that the use of -e in git commit is not as common as to merit breaking the convention due to the clash
-x is a common convention for various ex commands, so -x for --exclude is also ok.
Also, hg uses -I and -X switches for that:
-I --include PATTERN [+] include names matching the given patterns
-X --exclude PATTERN [+] exclude names matching the given patterns
Ok, you have convinced me that this is a good idea