Download:
child 48:1af673a1af4d
parent 46:30828f540fe8
47:9e4577696f1e
Anton Shestakov <engored@ya.ru>, Thu, 04 Sep 2014 14:26:58 +0900
Better vcs sessions.

2 файлов изменено, 3 вставок(+), 3 удалений(-) [+]
docs/prompt-session-git.sh file | annotate | diff | comparison | revisions
docs/prompt-session-hg.sh file | annotate | diff | comparison | revisions
--- a/docs/prompt-session-git.sh Thu Sep 04 03:33:16 2014 +0900
+++ b/docs/prompt-session-git.sh Thu Sep 04 14:26:58 2014 +0900
@@ -1,13 +1,13 @@
#!/bin/false
# paste this into an interactive shell
-cd /tmp/ && git init gitrepo && cd gitrepo/
+cd "$(mktemp -d)" && git init gitrepo && cd gitrepo
echo 'a' > foo
git add foo
git commit -m 'a'
echo 'b' >> foo
git commit -a -m 'b'
-git checkout HEAD@{1}
+git checkout -q HEAD@{1}
git checkout -b secret
echo 's' >> foo && git commit -a -m 's'
git merge master --strategy=ours --no-commit
--- a/docs/prompt-session-hg.sh Thu Sep 04 03:33:16 2014 +0900
+++ b/docs/prompt-session-hg.sh Thu Sep 04 14:26:58 2014 +0900
@@ -1,7 +1,7 @@
#!/bin/false
# paste this into an interactive shell
-cd /tmp/ && hg init hgrepo && cd hgrepo/
+cd "$(mktemp -d)" && hg init hgrepo && cd hgrepo
echo 'a' > foo && hg add foo
hg ci -m 'a'
echo 'b' >> foo && hg ci -m 'b'