git-util
git-util copied to clipboard
Miscellaneous git scripts and utilities
git-q starts if len(argv) < 3: usage() but there is no `usage` function to call.
This still doesn't make the script safe to use on repositories containing arbitrarily bad file names (because of the `for file in $(...)` construct). However it's better than not protecting...
For example, if I do ``` git mv A B git commit ... git re-edit HEAD ``` then the editor opens on both `B` and (nonexistent) `A`, because `git-dirtyfiles` reports...
This definitely affects `-r` mode, and probably also non-`r` mode. If `git-ff` fast-forwards the current branch, it uses `git-update-ref`, which does not update the index or the working tree. These...