]> khamidou — GitHub mirrors - arcanist.git/commit
Fix arc lint amend for git to not add untracked files
authordurham <durham@fb.com>
Fri, 19 Apr 2013 03:03:26 +0000 (20:03 -0700)
committerdurham <durham@fb.com>
Fri, 19 Apr 2013 03:03:26 +0000 (20:03 -0700)
commit07fba2a49b9ceb6da29fd3436dd232272acdbf2a
tree2e468e2c1b499ca0131093e8ceee80ee785a1fd4
parentfb88bb9da69e721f3e91f4dfc1e42e8b7b7f9df3
Fix arc lint amend for git to not add untracked files

Summary:
Arc lint for git is currently adding all untracked files when it
amends the commit with lint fixes. This changes the git add -A to be
git add -u. This only adds files that were already tracked. -A was adding
untracked files as well which was not the desired behavior here.

Test Plan:
Create an untracked file.
Commit a lint failure another file.

arc diff and choose to amend the lint patches.

Verify that the untracked file was not added but the tracked file was amended.

Reviewers: epriestley, wez, chad

Reviewed By: chad

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5731
src/workflow/ArcanistLintWorkflow.php