aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorJohannes Stoelp <johannes.stoelp@gmail.com>2024-08-20 01:28:37 +0200
committerJohannes Stoelp <johannes.stoelp@gmail.com>2024-08-20 01:28:37 +0200
commita50f54320317c1012f6d798f5d8fbaff0eeb438b (patch)
tree3efeb36d8d8980fe32a6140b3acb846c9e2b3c2c /src
parentda2ed84ebd63aefb6bbfe35bd72507759060ea00 (diff)
downloadnotes-a50f54320317c1012f6d798f5d8fbaff0eeb438b.tar.gz
notes-a50f54320317c1012f6d798f5d8fbaff0eeb438b.zip
git: bisect
Diffstat (limited to 'src')
-rw-r--r--src/development/git.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/development/git.md b/src/development/git.md
index 34c5baa..55748f4 100644
--- a/src/development/git.md
+++ b/src/development/git.md
@@ -138,6 +138,7 @@ the same repository (shared .git folder).
git log -p <file> ......... show commit history + diffs for <file>
git log --oneline <file> .. show commit history for <file> in compact format
+ git log -nN ............... show last N history entries
```
## Diff & Commit Info
@@ -216,6 +217,19 @@ the same repository (shared .git folder).
submodule diff
```
+## Bisect
+```markdown
+ git bisect start BAD GOOD ........ start bisect process in range BAD..GOOD commits
+ git bisect good .................. mark current commit as good
+ git bisect bad ................... mark current commit as bad
+
+ # Automate bisecting.
+ git bisect run <script> <args> ... run script to automate bisect process
+ exit 0 - mark commit as good
+ exit 1 - mark commit as bad
+ exit 125 - skip commit (eg doesn't build)
+```
+
## Inspection
```markdown
git ls-tree [-r] <ref> .... show git tree for <ref>, -r to recursively ls sub-trees