Junio C Hamano <[email protected]> writes:
> Andreas Schwab <[email protected]> writes:
>
>> Harry Jeffery <[email protected]> writes:
>>
>>> The purpose being to make finding your own commits quicker and easier:
>>> git log --author=me
>>
>> Since --author does a regexp search, this would most likely break
>> someone's searches. Better add a new option for that functionality.
>
> I do not think it would hurt too much to add "--mine" to look for
> "--author" that matches you, but on the other hand, I am not sure
> its value outweighs the additional noise in the manual page.
I have a few aliases to congratulate myself for being such an awesome
contributor from time to time ;-):
[alias]
mymaster = log --oneline [email protected] origin/master
It did require me to write these lines in my config file, but I think
that the trouble of writing them is smaller than the extra noise in the
manual page and possibly the output of `git log -h`. Having the
shorthand "--author=me" would be better than "git log --mine" as far as
cluttering the doc is concerned IMHO, but it's also likely to break
someone's search.
BTW, the output of `git log -h` is disappointing:
$ git log -h
usage: git log [<options>] [<revision-range>] [[--] <path>...]
or: git show [<options>] <object>...
-q, --quiet suppress diff output
--source show source
--use-mailmap Use mail map file
--decorate[=...] decorate options
-L <n,m:file> Process line range n,m in file, counting from 1
There are far more options than this...
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html