Skip to content

Instantly share code, notes, and snippets.

@pixelmattersdev
Last active March 7, 2022 10:58
Show Gist options
  • Save pixelmattersdev/bfcfdeb00486abc79c58805da033196e to your computer and use it in GitHub Desktop.
Save pixelmattersdev/bfcfdeb00486abc79c58805da033196e to your computer and use it in GitHub Desktop.
Git bisect blog post
git bisect badc4c708a3fecc993abbe2469ba05f0adfd4f6adfa is the first bad commit
commit c4c708a3fecc993abbe2469ba05f0adfd4f6adfa
Author: Gil Mendes
Date: Mon Nov 8 16:04:07 2021 +0000
feat: add link to the blog post
src/Animation.svelte | 4 ++--
src/App.svelte | 3 ++-
2 files changed, 4 insertions(+), 3 deletions(-)
git bisect badBisecting: 0 revisions left to test after this (roughly 0 steps)
[c4c708a3fecc993abbe2469ba05f0adfd4f6adfa] feat: add link to the blog post
git bisect bad
git bisect good ddb8e2619f09d58eb9966cf548829ae12ca30351
Bisecting: 0 revisions left to test after this (roughly 1 step)
[db4c51bf5ecc5cddcfaef51c0eb4863f34de1aad] chore: add more information about this project
git bisect reset
git bisect start
git show c4c708a3fecc993abbe2469ba05f0adfd4f6adfacommit c4c708a3fecc993abbe2469ba05f0adfd4f6adfa
Author: Gil Mendes <gil00mendes@gmail.com>
Date: Mon Nov 8 16:04:07 2021 +0000feat: add link to the blog postdiff --git a/src/Animation.svelte b/src/Animation.svelte
index ddf37a9..a02575a 100644
--- a/src/Animation.svelte
+++ b/src/Animation.svelte
@@ -24,8 +24,8 @@
const b = 128;imageData.data[p + 0] = r;
- imageData.data[p + 1] = g;
- imageData.data[p + 2] = b;
+ imageData.data[p + 0] = g;
+ imageData.data[p + 0] = b;
imageData.data[p + 3] = 255;
}diff --git a/src/App.svelte b/src/App.svelte
index dd208b9..b4cac78 100644
--- a/src/App.svelte
+++ b/src/App.svelte
@@ -6,9 +6,10 @@
<h1>Git Bisect Example</h1><div class="animationWrapper">
-
<Animation />
</div>
+
+ <a href="https://pixelmatters.com/blog/blog-post-link">Visit this blog article</a> to find more about Git Bisect.
</main><style>
commit ddb8e2619f09d58eb9966cf548829ae12ca30351
Author: Gil Mendes
Date: Mon Nov 8 16:01:19 2021 +0000
feat: implement animati
commit 664fa2c6ae295471ca3b8bb9bdc2b8bdcb5a6140 (HEAD -> main, origin/main)
Author: Gil Mendes
Date: Mon Nov 8 16:12:16 2021 +0000
chore: update README filecommit db4c51bf5ecc5cddcfaef51c0eb4863f34de1aad
Author: Gil Mendes
Date: Mon Nov 8 16:05:14 2021 +0000
chore: add more information about this projectcommit c4c708a3fecc993abbe2469ba05f0adfd4f6adfa
Author: Gil Mendes
Date: Mon Nov 8 16:04:07 2021 +0000
feat: add link to the blog postcommit ddb8e2619f09d58eb9966cf548829ae12ca30351
Author: Gil Mendes
Date: Mon Nov 8 16:01:19 2021 +0000
feat: implement animationcommit 1b6fb01db83f83794891ac566c33880a6cb844b0
Author: Gil Mendes
Date: Mon Nov 8 15:52:51 2021 +0000
chore: add lock file and ignore some VIM filescommit 5b8bd355d2be156d27362f2fcd35d3e6ea6ff420
Author: Gil Mendes
Date: Mon Nov 8 15:51:52 2021 +0000
chore: initial commit
git clone git@github.com:Pixelmatters/git-bisect-example.git
cd git-bisect-example && pnpm i
pnpm dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment