Page MenuHomePhabricator

Don't parse separator tabs as part of the filename in Git diffs which affect files with spaces
ClosedPublic

Authored by epriestley on Aug 14 2014, 4:09 PM.
Tags
None
Referenced Files
F13210278: D10267.diff
Fri, May 17, 4:41 AM
F13194147: D10267.diff
Sun, May 12, 9:21 PM
F13193683: D10267.id24717.diff
Sun, May 12, 4:52 PM
F13178878: D10267.diff
Wed, May 8, 8:45 PM
Unknown Object (File)
Sat, May 4, 6:14 PM
Unknown Object (File)
Thu, May 2, 8:54 AM
Unknown Object (File)
Wed, Apr 24, 9:52 PM
Unknown Object (File)
Sun, Apr 21, 3:46 PM
Subscribers

Details

Summary

Fixes T5870. When a filename contains spaces, Git will add a "\t" at the end of the "---" and "+++" lines. We currently consume this and think we're reading a file called "blah blah\t".

Instead, parse it out as not part of the filename.

Test Plan

Added failing unit test and made it pass.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

epriestley retitled this revision from to Don't parse separator tabs as part of the filename in Git diffs which affect files with spaces.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
This revision is now accepted and ready to land.Aug 14 2014, 6:50 PM
epriestley updated this revision to Diff 24717.

Closed by commit rARC65b6e1bdac6e (authored by @epriestley).