Update ptw

git-svn-id: http://photonzero.com/dotfiles/trunk@98 23f722f6-122a-0410-8cef-c75bd312dd78
This commit is contained in:
michener 2011-05-05 19:28:34 +00:00
parent c863f92442
commit 1af0bb64b4
2 changed files with 3 additions and 2 deletions

View file

@ -1,2 +1,3 @@
#!/bin/bash #!/bin/bash
git log --format="%at%x09%s" --author="barakmich" | ptw import --client="git" --source="Git Log" git log --no-merges --format="%at%x09%s" --shortstat --author="barakmich" | sed "N;s/\n//;N;s/\n/ - /" | sed 's/files changed,/c;/g' | sed 's/insertions(+),/(+);/g' | sed 's/deletions(-)/(-)/g' | ptw import --client="git" --source="Git Log"
#git log --format="%at%x09%s" --author="barakmich" | ptw import --client="git" --source="Git Log"

View file

@ -196,7 +196,7 @@ def db_get(count=None, since=None):
def timestamp_and_text_exists(timestamp, text, db): def timestamp_and_text_exists(timestamp, text, db):
for x in db: for x in db:
if x["timestamp"] == timestamp: if x["timestamp"] == timestamp:
if x["text"] == text: if text.startswith(x["text"]):
return True return True
return False return False