Make a create-stable-branch script. Easy.
[git-central.git] / scripts / make-stable-branch
1 #!/bin/sh
2
3 # Make a root directory tree with no files in it
4 config_tree_hash=$(git mktree <<FOO
5 FOO)
6
7 # Commit the root directory tree
8 commit_hash=$(git commit-tree $config_tree_hash <<FOO
9 Initial commit on stable branch.
10 FOO)
11
12 # Push the commit out to the gitconfig branch
13 git update-ref refs/heads/stable "$commit_hash" 0000000000000000000000000000000000000000
14