diff options
author | Tom Rini <trini@konsulko.com> | 2015-04-23 14:56:47 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-04-23 14:56:47 -0400 |
commit | d8c1d5d5fb6eafbc532982125f006e49f2c40e71 (patch) | |
tree | 3a8a16f58c8c541032f96f0989a53f57e9008184 /tools/patman/gitutil.py | |
parent | 5f757cdcc6efbefec09b8f964a234f84ff9fa7f6 (diff) | |
parent | 3871cd858fcf8a00e31c2f456409afea03ce8788 (diff) |
Merge branch 'buildman' of git://git.denx.de/u-boot-x86
Diffstat (limited to 'tools/patman/gitutil.py')
-rw-r--r-- | tools/patman/gitutil.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index 4c2c35bf9ac..9e739d89b6f 100644 --- a/tools/patman/gitutil.py +++ b/tools/patman/gitutil.py @@ -545,6 +545,17 @@ def GetDefaultUserEmail(): uemail = command.OutputOneLine('git', 'config', '--global', 'user.email') return uemail +def GetDefaultSubjectPrefix(): + """Gets the format.subjectprefix from local .git/config file. + + Returns: + Subject prefix found in local .git/config file, or None if none + """ + sub_prefix = command.OutputOneLine('git', 'config', 'format.subjectprefix', + raise_on_error=False) + + return sub_prefix + def Setup(): """Set up git utils, by reading the alias files.""" # Check for a git alias file also |