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
F14046481: D10267.diff
Wed, Nov 13, 9:29 PM
F14033667: D10267.diff
Sat, Nov 9, 7:05 PM
F14018912: D10267.diff
Tue, Nov 5, 8:31 PM
F13995267: D10267.diff
Wed, Oct 23, 11:48 AM
F13992370: D10267.id.diff
Tue, Oct 22, 4:02 PM
F13985803: D10267.diff
Sun, Oct 20, 10:58 PM
F13961831: D10267.id24716.diff
Oct 15 2024, 6:34 AM
Unknown Object (File)
Sep 27 2024, 11:13 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
Branch
rmspace
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/parser/__tests__/diff/git-remove-spaces.gitdiff:4TXT2Tab Literal
Unit
Tests Passed
Build Status
Buildable 2227
Build 2231: [Placeholder Plan] Wait for 30 Seconds

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).