~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Allow fast-forward pushing.
[stgit]
/
stgit
/
utils.py
diff --git
a/stgit/utils.py
b/stgit/utils.py
index
9465fe0
..
b941f7c
100644
(file)
--- a/
stgit/utils.py
+++ b/
stgit/utils.py
@@
-39,6
+39,14
@@
def write_string(filename, string, multiline = False):
print >> f, string
f.close()
print >> f, string
f.close()
+def append_strings(filename, strings):
+ """Appends string sequence to file
+ """
+ f = file(filename, 'a+')
+ for string in strings:
+ print >> f, string
+ f.close()
+
def append_string(filename, string):
"""Appends string to file
"""
def append_string(filename, string):
"""Appends string to file
"""