git-difftool, fallocate, vmstat: fix placeholders, improve examples (#21094)

This commit is contained in:
Dylan
2026-02-12 12:54:13 +00:00
committed by GitHub
parent 8b6dc0be00
commit fc8e97a9d3
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -8,14 +8,14 @@
`git difftool --tool-help`
- Set the default diff tool to meld:
- Set the default diff tool to Meld:
`git config --global diff.tool "{{meld}}"`
`git config --global diff.tool "meld"`
- Use the default diff tool to show staged changes:
`git difftool --staged`
- Use a specific tool (opendiff) to show changes since a given commit:
- Use a specific tool to show changes since a given commit:
`git difftool {{[-t|--tool]}} {{opendiff}} {{commit}}`
+4 -4
View File
@@ -6,12 +6,12 @@
- Reserve a file taking up 700 MiB of disk space:
`fallocate {{[-l|--length]}} {{700M}} {{path/to/file}}`
`fallocate {{[-l|--length]}} 700M {{path/to/file}}`
- Shrink an already allocated file by 200 MiB:
- Shrink an already allocated file by 200 MB:
`fallocate {{[-c|--collapse-range]}} {{[-l|--length]}} {{200M}} {{path/to/file}}`
`fallocate {{[-c|--collapse-range]}} {{[-l|--length]}} 200MB {{path/to/file}}`
- Shrink 20 MB of space after 100 MiB in a file:
`fallocate {{[-c|--collapse-range]}} {{[-o|--offset]}} {{100M}} {{[-l|--length]}} {{20M}} {{path/to/file}}`
`fallocate {{[-c|--collapse-range]}} {{[-o|--offset]}} 100M {{[-l|--length]}} 20M {{path/to/file}}`
+1 -1
View File
@@ -9,4 +9,4 @@
- Display reports every 2 seconds for 5 times:
`vmstat {{2}} {{5}}`
`vmstat 2 5`