News for hackers. Stuff that matters.
Re:Idiot Proof Git by teo_zero on Wednesday November 09, 2022 @05:15PM (#33538772)
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?

Re:Idiot Proof Git by throwaw20221107 on Wednesday November 09, 2022 @05:50PM (#33539264)
Ya, the three arguments are

1. `|`

2. `grep`

3. `"my actual filter"`

Re:Idiot Proof Git by expazl on Wednesday November 09, 2022 @06:11PM (#33539512)
Genuine question. What makes you feel that -a is an ugly flag?
Re:Idiot Proof Git by teo_zero on Thursday November 10, 2022 @01:03AM (#33542866)
Flags 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.
Re:Idiot Proof Git by chociej on Thursday November 10, 2022 @01:36AM (#33543032)
TBF (at least with GNU find) you don't have to:

    find -name foo