You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a repo of mine, the directory containing most code was moved relatively recently.
When I call git who without params, the top committer has hundreds of commits, but most of these commits happened on the (moved) folder.
$ git who
┌─────────────────────────────────────────────────────┐
│Author Last Edit Commits│
├─────────────────────────────────────────────────────┤
│[REDACTED] 1 month ago 676│
│[REDACTED] 2 mon. ago 78│
│[REDACTED] 4 yr. ago 5│
...
$ git who src
┌─────────────────────────────────────────────────────┐
│Author Last Edit Commits│
├─────────────────────────────────────────────────────┤
│[REDACTED] 1 month ago 16│
│[REDACTED] 6 mon. ago 1│
└─────────────────────────────────────────────────────┘
$ git who previousname # now at "src/previousname"
Git subprocess exited with code 128. Error output:
fatal: ambiguous argument 'previousname': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
$ git who *
┌─────────────────────────────────────────────────────┐
│Author Last Edit Commits│
├─────────────────────────────────────────────────────┤
│[REDACTED] 1 month ago 385│
│[REDACTED] 2 mon. ago 51│
│[REDACTED] 4 yr. ago 3│
...
The text was updated successfully, but these errors were encountered:
I'm not sure what you're asking exactly. Are you trying to run git who on previousname, to get a sense for how many commits were made by each author to that old directory?
You should be able to do this by running git who -- previousname. Just like with git log, if the path isn't present in the working tree, you need to add the --.
In a repo of mine, the directory containing most code was moved relatively recently.
When I call
git who
without params, the top committer has hundreds of commits, but most of these commits happened on the (moved) folder.The text was updated successfully, but these errors were encountered: