Skip to content

Instantly share code, notes, and snippets.

@aodhan-domhnaill
Last active September 5, 2019 05:33
Show Gist options
  • Save aodhan-domhnaill/74e4636db9f12fe57fcaeaad204d8e0e to your computer and use it in GitHub Desktop.
Save aodhan-domhnaill/74e4636db9f12fe57fcaeaad204d8e0e to your computer and use it in GitHub Desktop.
Testing Various Commits
$ git rebase --root -ix "python -c 'exit(0 if \"A\" in open(\"A\").read() else 1)' && echo \$(git rev-parse --short HEAD) SUCCESS
|| echo \$(git rev-parse --short HEAD) FAILURE"
Executing: python -c 'exit(0 if "A" in open("A").read() else 1)' && echo $(git rev-parse --short HEAD) SUCCESS || echo $(git rev-parse --short HEAD) FAILURE
aa65917 SUCCESS
Executing: python -c 'exit(0 if "A" in open("A").read() else 1)' && echo $(git rev-parse --short HEAD) SUCCESS || echo $(git rev-parse --short HEAD) FAILURE
e9ab646 FAILURE
Executing: python -c 'exit(0 if "A" in open("A").read() else 1)' && echo $(git rev-parse --short HEAD) SUCCESS || echo $(git rev-parse --short HEAD) FAILURE
8d10833 FAILURE
Executing: python -c 'exit(0 if "A" in open("A").read() else 1)' && echo $(git rev-parse --short HEAD) SUCCESS || echo $(git rev-parse --short HEAD) FAILURE
ec0a7c2 FAILURE
Executing: python -c 'exit(0 if "A" in open("A").read() else 1)' && echo $(git rev-parse --short HEAD) SUCCESS || echo $(git rev-parse --short HEAD) FAILURE
9002f4a FAILURE
Successfully rebased and updated refs/heads/master.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment