diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-07-07 12:16:13 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-07-07 12:16:13 +0200 |
commit | f068cdc5a1a13539c4a1d756ae950aab65f5348b (patch) | |
tree | 0c4d4a2e9a355d2368818e97ae4643cbfb40e3a8 /lib/git/repo/base.py | |
parent | 9059525a75b91e6eb6a425f1edcc608739727168 (diff) | |
download | gitpython-f068cdc5a1a13539c4a1d756ae950aab65f5348b.tar.gz |
Initially working implementation of short-sha parsing and interpretation, thanks to new gitdb functionality
Diffstat (limited to 'lib/git/repo/base.py')
-rw-r--r-- | lib/git/repo/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/git/repo/base.py b/lib/git/repo/base.py index 976a68bf..e659225e 100644 --- a/lib/git/repo/base.py +++ b/lib/git/repo/base.py @@ -58,8 +58,7 @@ class Repo(object): # precompiled regex re_whitespace = re.compile(r'\s+') re_hexsha_only = re.compile('^[0-9A-Fa-f]{40}$') - re_hexsha_shortened = re.compile('^[0-9A-Fa-f]{7,40}$') - re_hexsha_domain = re.compile('^[0-9A-Fa-f]{1,40}$') + re_hexsha_shortened = re.compile('^[0-9A-Fa-f]{4,40}$') re_author_committer_start = re.compile(r'^(author|committer)') re_tab_full_line = re.compile(r'^\t(.*)$') |