3 ms·
I see gitless has a bunch of 'gl ____ -c foobar' as well. Why is the -c (create?) needed? Isn't it apparent that if that branch doesn't exist we need to create
by Xeoncross 10y ago
I see gitless has a bunch of 'gl ____ -c foobar' as well. Why is the -c (create?) needed? Isn't it apparent that if that branch doesn't exist we need to create it? If that remote doesn't exist we need to create it?
Convention over configuration?
- ggreer 10y ago> Isn't it apparent that if that branch doesn't exist we need to create it? It could just be misspelled. I've accidentally created quite a few misspelled branches in my time. E.g.: "bug-fix" vs "bug_fix" vs "bugfix".
- smitherfield 10y agoYeah but then there's the issue of simple misspellings. Perhaps switching and creating should be separate commands.
- ggreer 10y agoExactly. It would be like if `cd pathname` was the equivalent of `mkdir -p pathname && cd pathname`. Even with tab completion, only a tiny minority of users want that behavior. To most, it invites mistakes.