[PATCH] D79054: [NFC] Improve documentation for -i and update example git one liner

2020-05-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. We should probably encourage people to use git-clang-format with git repositories. It naturally doesn't have this sort of fragility because it integrates with the repository more tightly. Comment at: clang/tools/clang-format/clang-format-diff.py:41

[PATCH] D79054: [NFC] Improve documentation for -i and update example git one liner

2020-04-28 Thread Christopher Tetreault via Phabricator via cfe-commits
ctetreau added a comment. I considered trying to find a way to work around the issue. Something like "if the file is not found, and the current directory is `/foo/bar/`, and the computed filename is `bar/baz.c`, then use `/foo/bar/baz.c`". But I don't think there's any way we can reliably know

[PATCH] D79054: [NFC] Improve documentation for -i and update example git one liner

2020-04-28 Thread Christopher Tetreault via Phabricator via cfe-commits
ctetreau created this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. ctetreau added reviewers: djasper, alexfh. ctetreau added a comment. I considered trying to find a way to work around the issue. Something like "if the file is not found, and the current