patman: Handle creation of patman config file
authorVikram Narayanan <vikram186@gmail.com>
Wed, 23 May 2012 09:01:06 +0000 (09:01 +0000)
committerWolfgang Denk <wd@denx.de>
Tue, 19 Jun 2012 20:51:55 +0000 (22:51 +0200)
commit87d65558efe50bb2cc3617bafd8399695212c0e5
tree0b21809e60f6408fd84c0eda3029a841176a39ce
parent2b36c75d7b930a860ec17f2af3321faa5811593b
patman: Handle creation of patman config file

patman shouts when it couldn't find a $(HOME)/.patman file.
Handle it in a sane way by creating a new one for the user.
It looks for a user.name and user.email in the global .gitconfig
file, waits for the user input if it can't find there. Update the
same in the README

Signed-off-by: Vikram Narayanan <vikram186@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
Cc: Simon Glass <sjg@chromium.org>
Cc: Wolfgang Denk <wd@denx.de>
tools/patman/README
tools/patman/gitutil.py
tools/patman/settings.py