-
-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replacing rev
in git-modified
; second try
#58
Comments
Just for my own edification, here's the command I ran on the git-toolbelt repo as evidence that the output of git log --oneline | awk '{print $1}' \
| xargs -I{} sh -c 'git log -1 --name-status --pretty=format:"" {}' \
| awk -F'\t' 'NF!=2'
# result:
# R100 git-aa git-stage-all
# R100 git-cc git-unstage-all
# R100 git-unmerge git-undo-merge Today I learned! |
The I don't mind to switch it over to |
No judgements from my side! It's just that I'll check again, though. Maybe the situation has changed. Certainly the landscape of Unix-on-Windows has changed, with WSL being fairly well established now. |
I'm looking for a way to accomplish what
git-modified
is accomplishing withrev
, withoutrev
, as discussed in #29 and incorrectly implemented in #39.git-toolbelt/git-modified
Line 124 in 2eec073
It looks like you had to do the
rev
stuff in 4ea5c29 to account for some change in the output ofgit log
circa 2018.I didn't understand what was going on with the
rev
s there for a good long while, but now I do1; when a rename happens, there are three columns in the output, and you want the last one.@nvie, would you be amenable to using
awk
for this, or is that a dependency you'd hoped to steer clear of? People are likely to have a functionalawk
even if they're missingrev
, although I'll have to double-check if that's the case with Git Bash. On the other hand, some sort ofwhile IFS="$TAB" read
ing might do the trick, too, in plain shell script.Footnotes
this SO question was helpful in that regard ↩
The text was updated successfully, but these errors were encountered: