]> khamidou — GitHub mirrors - arcanist.git/commit
add support for using Arcanist with git's log.decorate setting enabled
authorEhren Kret <ehren@fb.com>
Mon, 30 Apr 2012 21:14:23 +0000 (14:14 -0700)
committerEhren Kret <ehren@fb.com>
Mon, 30 Apr 2012 21:14:23 +0000 (14:14 -0700)
commitb32b868a61078b3a40a745f4a0bb1e895beed946
tree4b516a154e8fd3f92db847fd9423d585e9913405
parente9ab03a48e74bc8e0ee2fee2ea01c51f3b3583a9
add support for using Arcanist with git's log.decorate setting enabled

Summary:
Arcanist fails to find git's 'commit <hash>' header when log.decorate is
set in one of git's config files. git adds the named refs that point to
the commit in parentheses following the hash. This changes the regex
used by arcanist to match git commit headers to optionally match the
branch names in parentheses following the hash.

Test Plan:
Run `git config --global log.decorate short` and check that `arc diff`
runs successfully.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Koolvin
Differential Revision: https://secure.phabricator.com/D2344
src/parser/diff/ArcanistDiffParser.php
src/parser/diff/__tests__/ArcanistDiffParserTestCase.php
src/parser/diff/__tests__/data/git-commit-logdecorate.gitdiff [new file with mode: 0644]
src/repository/api/git/ArcanistGitAPI.php