├── LICENSE ├── README.md └── git-pray /LICENSE: -------------------------------------------------------------------------------- 1 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 2 | Version 2, December 2004 3 | 4 | Copyright (C) 2013 James Pearson 5 | 6 | Everyone is permitted to copy and distribute verbatim or modified 7 | copies of this license document, and changing it is allowed as long 8 | as the name is changed. 9 | 10 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 11 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 12 | 13 | 0. You just DO WHAT THE FUCK YOU WANT TO. 14 | 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Inspired by a conversation in our development chat: 2 | 3 | James Pearson The group around your desk has disappeared. Did a solution present itself? 4 | Scott Vanderlind @James Not entirely. @Cedric offered "good luck" and @Adam said he'd look into the runtime error the switch script was throwing. 5 | Cedric Wienold @Scott when in doubt, use pure git 6 | Daniel Beardsley @Scott --weird... is the submodule not added correctly? 7 | ya. 8 | Cedric Wienold git co branch 9 | git pull 10 | git sm init 11 | git sm update 12 | git pray 13 | 14 | # Deities 15 | 1. Athena 16 | 2. Dagr 17 | 3. Jehovah 18 | 4. Jupiter 19 | 5. Kwisatz Haderach 20 | 21 | # Example 22 | 23 | [$]> DEITY='Jehovah' git pray 24 | Our Father in origin, 25 | hallowed be your ref. 26 | May your commits come soon, 27 | and may your pull requests be merged, 28 | on master as it is in origin/master. 29 | Give us today our daily SHAs, 30 | and forgive us our push -fs 31 | as we have forgiven those who push -f against us. 32 | Lead us not into Subversion, 33 | but deliver us from detached HEAD. 34 | For yours is the source code, and the power, and the glory, forever. 35 | Amen. 36 | 37 | -------------------------------------------------------------------------------- /git-pray: -------------------------------------------------------------------------------- 1 | #!/bin/bash -e 2 | 3 | case "$DEITY" in 4 | 'Athena') 5 | cat <<'EOT' 6 | Athena, flint-eyed daughter 7 | of excellent Zeus, 8 | clear-headed goddess, 9 | bold-hearted patron of code. 10 | Bright Athena, commits guided 11 | by forethought, 12 | kind one who draws near us, 13 | who flees no merge conflict, 14 | your favor sought by many, 15 | your presence so strong, 16 | so penetrating, 17 | so unmistakable. 18 | Athena, shining engineer, 19 | child of wisdom, 20 | I pray to you. Precision 21 | and unmuddled thought 22 | I ask of you, crisp reason 23 | and blessed clarity, 24 | surety and conviction, 25 | quick wit and quick action. 26 | Give me eyes to see far, 27 | over the architecture; 28 | give me heart to bear legacy code, 29 | give me strength to hold fast. 30 | EOT 31 | ;; 32 | 'Dagr') 33 | cat <<'EOT' 34 | Hail, upstream! 35 | Hail, clones of upstream! 36 | And the fork and her clones now! 37 | Look on us here, 38 | with loving patch review, 39 | That waiting we merges win. 40 | 41 | Hail to the committers! 42 | Ye contributors, hail, 43 | And all the generous software ecosystem! 44 | Give to us wisdom, 45 | and goodly commits, 46 | And healing rebases, life-long. 47 | EOT 48 | ;; 49 | 'Jehovah') 50 | cat <<'EOT' 51 | Our Father in origin, 52 | hallowed be your ref. 53 | May your commits come soon, 54 | and may your pull requests be merged, 55 | on master as it is in origin/master. 56 | Give us today our daily SHAs, 57 | and forgive us our push -fs 58 | as we have forgiven those who push -f against us. 59 | Lead us not into Subversion, 60 | but deliver us from detached HEAD. 61 | For yours is the source code, and the power, and the glory, forever. 62 | Amen. 63 | EOT 64 | ;; 65 | 'Jupiter') 66 | cat <<'EOT' 67 | Jupiter Committer, 68 | if on HEAD commits have been lost, 69 | or if in the nation of versioning 70 | the owed commit messages have been omitted, 71 | let it be as if they had been made. 72 | 73 | Jupiter Committer, 74 | if in your pull request there has been any flaw, 75 | any defect, any contribution guidelines not followed, 76 | if in your pull request there is a flaw, 77 | either seen or unseen, 78 | let it be as if there was not. 79 | EOT 80 | ;; 81 | 'Kwisatz Haderach') 82 | cat <<'EOT' 83 | I must not fear rebase. 84 | Fear is the history-killer. 85 | Fear is the little-death that births merge conflicts. 86 | I will face my fear. 87 | I will permit rebase to pass over my commits and rewrite my history. 88 | And when it has gone past I will turn the inner log to see its path. 89 | Where the rebase has gone there will be nothing. 90 | Only the tip will remain. 91 | EOT 92 | ;; 93 | *) 94 | echo "\$DEITY not set. You're on your own, bud." 95 | ;; 96 | esac 97 | 98 | --------------------------------------------------------------------------------