log: New command that displays the location log for file, showing each repository they were added to and removed from.

This needs to run git log on the location log files to get at all past
versions of the file, which tends to be a bit slow.

It would be possible to make a version optimised for showing the location
logs for every key. That would only need to run git log once, so would be
faster, but it would need to process an enormous amount of data, so
would not speed up the individual file case.

In the future it would be nice to support log --format. log --json also
doesn't work right yet.
This commit is contained in:
Joey Hess 2012-01-06 15:40:04 -04:00
parent 1f8a1058c9
commit a3a9f87047
7 changed files with 111 additions and 2 deletions

View file

@ -273,6 +273,11 @@ subdirectories).
Displays a list of repositories known to contain the content of the
specified file or files.
* log [path ...]
Displays the location log for the specified file or files,
showing each repository they were added to ("+") and removed from ("-").
* status
Displays some statistics and other information, including how much data