repo.or.cz
/
stgit
/
ydirson.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Allow 'refresh' to annotate the patch log entries
[stgit/ydirson.git]
/
t
/
t1700-goto-top.sh
blob
618ebc7cfc7b15b6b647481cbee10da89035731b
1
#!/bin/sh
2
#
3
# Copyright (c) 2006 Ilpo Järvinen
4
#
5
6
test_description
=
'Test goto to the current patch.
7
8
'
9
10
. .
/
test-lib.sh
11
12
test_expect_success \
13
'Initialize the StGIT repository'
\
14
'stg init
15
'
16
17
test_expect_success \
18
'Create the first patch'
\
19
'
20
stg new foo -m "Foo Patch" &&
21
echo foo > test &&
22
stg add test &&
23
stg refresh
24
'
25
26
test_expect_success \
27
'Goto current patch'
\
28
'
29
stg goto `stg top`
30
'
31
32
test_done