diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-06-01 06:59:36 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2009-06-01 07:53:12 +0300 |
commit | 064bee710b23d87ccdb4a65bed3ed4cbc55c07e9 (patch) | |
tree | 3ded07f45953989772d835cd6dc4630abd96861a /.old | |
parent | -- optimization: one time processing moved to post-config (diff) | |
download | git-prompt-064bee710b23d87ccdb4a65bed3ed4cbc55c07e9.tar.gz git-prompt-064bee710b23d87ccdb4a65bed3ed4cbc55c07e9.tar.bz2 git-prompt-064bee710b23d87ccdb4a65bed3ed4cbc55c07e9.zip |
-- dir, docs cleanup
Diffstat (limited to '.old')
-rw-r--r-- | .old/demo-more-script | 37 | ||||
-rw-r--r-- | .old/git-demo | 37 |
2 files changed, 74 insertions, 0 deletions
diff --git a/.old/demo-more-script b/.old/demo-more-script new file mode 100644 index 0000000..ca33522 --- /dev/null +++ b/.old/demo-more-script @@ -0,0 +1,37 @@ +set +xv +. /t/prompt/prompt +test -d demo && rm -rf demo/ +test -d ../demo && cd .. && rm -rf demo/ +clear +: ------------------------------------------------------------------------ +mkdir demo +cd demo +git init +echo 'main() {puts("Hello World!");}' > hello.c +make hello && ./hello +git add hello.c +git commit -q -m "1st hello" +git checkout -b universe; git clean -f +echo 'main() {puts("Hello Universe!");}' > hello.c +git add hello.c +echo "// FIXME: includes" >> hello.c +git add hello.c +git commit -q -m "notes to self" +git checkout master +cat hello.c +echo 'main() {puts("Hello Universe!"); exit(0);}' > hello.c +git add hello.c +git commit -q -m "fixed exit code" +git merge universe +git cat-file -p universe:hello.c > hello.c +git add hello.c +git commit -q -m "merged" +cat hello.c +git checkout HEAD^ +git checkout HEAD^ +cat hello.c +git checkout master +sleep 2; echo "this emulates unsaved vim session" > .hello.c.swp +git clean -f +: ------------------------------------------------------------------------ +cd .. diff --git a/.old/git-demo b/.old/git-demo new file mode 100644 index 0000000..ca33522 --- /dev/null +++ b/.old/git-demo @@ -0,0 +1,37 @@ +set +xv +. /t/prompt/prompt +test -d demo && rm -rf demo/ +test -d ../demo && cd .. && rm -rf demo/ +clear +: ------------------------------------------------------------------------ +mkdir demo +cd demo +git init +echo 'main() {puts("Hello World!");}' > hello.c +make hello && ./hello +git add hello.c +git commit -q -m "1st hello" +git checkout -b universe; git clean -f +echo 'main() {puts("Hello Universe!");}' > hello.c +git add hello.c +echo "// FIXME: includes" >> hello.c +git add hello.c +git commit -q -m "notes to self" +git checkout master +cat hello.c +echo 'main() {puts("Hello Universe!"); exit(0);}' > hello.c +git add hello.c +git commit -q -m "fixed exit code" +git merge universe +git cat-file -p universe:hello.c > hello.c +git add hello.c +git commit -q -m "merged" +cat hello.c +git checkout HEAD^ +git checkout HEAD^ +cat hello.c +git checkout master +sleep 2; echo "this emulates unsaved vim session" > .hello.c.swp +git clean -f +: ------------------------------------------------------------------------ +cd .. |