Ask git for author and committer name
authorKarl Hasselström <kha@treskal.com>
Tue, 5 Dec 2006 22:07:23 +0000 (22:07 +0000)
committerCatalin Marinas <catalin.marinas@gmail.com>
Tue, 5 Dec 2006 22:07:23 +0000 (22:07 +0000)
commit9e3f506f0d0e1b0c09d1e9d7051af23bfede7834
tree65805de4daa1a8307664bb83e1305b44e473d104
parent29d9e8ce8e74d9319c3e9979dd8aa267c0de8239
Ask git for author and committer name

(patch modified by Catalin Marinas)

Consistently do the following to get hold of default user, author and
committer:

  1. Use the value specified on the command line, if any.

  2. Otherwise, use the environment variables, if any.

  3. Otherwise, read the configuration files

Signed-off-by: Karl Hasselström <kha@treskal.com>
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
examples/gitconfig
stgit/commands/mail.py
stgit/config.py
stgit/git.py
stgit/main.py
stgit/stack.py