{"thread":{"id":"23096","subject":"[PATCH] Auto-correct git pull -ff to git pull --ff.","startedAt":"2010-03-20T01:59:25Z","lastAt":"2010-03-20T01:59:25Z","messageCount":1,"participants":["tsuna"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"137291","messageId":"4d9f5be51003191859p38c7cfa9o11eafd5016b6ced@mail.gmail.com","threadId":"23096","inReplyTo":null,"subject":"[PATCH] Auto-correct git pull -ff to git pull --ff.","fromName":"tsuna","fromEmail":"tsunanet@gmail.com","sentAt":"2010-03-20T01:59:25Z","receivedAt":"2010-03-20T01:59:25Z","isPatch":true,"sender":{"key":"tsunanet@gmail.com","avatar":"https://avatars.githubusercontent.com/u/128281?v=4"},"body":"Hi there,\nI attached a trivial patch that auto-corrects a frequent typo does not\ntrigger any error with git pull.\nI find it useful so I hope others will too.\n\n-- \nBenoit \"tsuna\" Sigoure\n\n\nFrom e4d43640d80fca93fda45d13e02f3fedf09f639a Mon Sep 17 00:00:00 2001\nFrom: Benoit Sigoure <tsunanet@gmail.com>\nDate: Wed, 17 Mar 2010 17:11:44 -0700\nSubject: [PATCH] Auto-correct git pull -ff to git pull --ff.\n\nThis frequent typo does not trigger any error because git pull doesn't\nrecognize -ff and passes it through to git fetch, which parses it as a\nshort option, as if the option -f was simply specified twice.\n---\n git-pull.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-pull.sh b/git-pull.sh\nindex d45b50c..be85032 100755\n--- a/git-pull.sh\n+++ b/git-pull.sh\n@@ -66,7 +66,7 @@ do\n \t\tsquash=--squash ;;\n \t--no-sq|--no-squ|--no-squa|--no-squas|--no-squash)\n \t\tsquash=--no-squash ;;\n-\t--ff)\n+\t-ff|--ff)\n \t\tno_ff=--ff ;;\n \t--no-ff)\n \t\tno_ff=--no-ff ;;\n-- \n1.7.0.2.279.gf1ba1c\n\n"}]}