4 ms·
Very nice! I fed it one of my favorite commands: git branch --merged | grep -v master | xargs -n 1 git branch -d and it dealt with it reasonably well. The
by sjrd 10y ago
Very nice! I fed it one of my favorite commands:
git branch --merged | grep -v master | xargs -n 1 git branch -d
and it dealt with it reasonably well. The only part it couldn't understand was `branch -d` at the end. In other words, it was not capable of recognizing that the non-option arguments to `xargs` should actually be recursively interpreted as a command-line.
- tsneed290 10y agoTIL that git calls itself "the stupid content tracker"
- nonsince 10y agoPretty funny seeing as the main complaint about git is that it's too complex
- elevensies 10y agoI also tried a command with xargs, it seemed to do a pretty good job: http://explainshell.com/explain?cmd=find+.+-type+f+-print0+%7C+xargs+-0+grep+-i+%22PATTERN%22 http://explainshell.com/explain?cmd=find+.+-type+f+-print0+%...