3 ms·
Git's interface is like the 'find' UNIX command: it makes complex things possible, but does nothing to make common ones easy. 99% of times I want to find a file
by teo_zero 4y ago
Git's interface is like the 'find' UNIX command: it makes complex things possible, but does nothing to make common ones easy. 99% of times I want to find a file in the current directory or below:
find . -name foo -print
Can you spot the 3 obvious arguments that find shouldn't require me to type?
Similarly, if so many users add -a to their git commands, why is this relegated to such an ugly flag?
- throwaw20221107 4y agoYa, the three arguments are 1. `|` 2. `grep` 3. `"my actual filter"`
- expazl 4y agoGenuine question. What makes you feel that -a is an ugly flag?
- teo_zero 4y agoFlags are modifiers to alter the standard behavior of a command. If you use it 99% of the times, then I'll argue that the definition of "standard" is wrong.
- chociej 4y agoTBF (at least with GNU find) you don't have to: find -name foo