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
F14407119: D10267.diff
Tue, Dec 24, 1:53 AM
Unknown Object (File)
Tue, Nov 26, 7:56 PM
Unknown Object (File)
Sun, Nov 24, 5:58 PM
Unknown Object (File)
Nov 22 2024, 1:42 AM
Unknown Object (File)
Nov 17 2024, 10:08 PM
Unknown Object (File)
Nov 13 2024, 9:29 PM
Unknown Object (File)
Nov 9 2024, 7:05 PM
Unknown Object (File)
Nov 5 2024, 8:31 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).