mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
Merge #5931
5931: Add even better blame instructions r=def- a=heinrich5991 ## Checklist - [ ] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test (especially base/) or added coverage to integration test - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
This commit is contained in:
commit
01db4f6f7b
|
@ -325,8 +325,12 @@ $ phoronix-test-suite benchmark ddnet
|
|||
|
||||
Better Git Blame
|
||||
----------------
|
||||
Set a git ignore revs file to ignore formatting revisions:
|
||||
|
||||
First, use a better tool than `git blame` itself, e.g. [`tig`](https://jonas.github.io/tig/). There's probably a good UI for Windows, too. Alternatively, use the GitHub UI, click "Blame" in any file view.
|
||||
|
||||
For `tig`, use `tig blame path/to/file.cpp` to open the blame view, you can navigate with arrow keys or kj, press comma to go to the previous revision of the current line, q to quit.
|
||||
|
||||
Only then you could also set up git to ignore specific formatting revisions:
|
||||
```bash
|
||||
git config blame.ignoreRevsFile formatting-revs.txt
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue