* [PATCH] Auto-correct git pull -ff to git pull --ff.
@ 2010-03-20 1:59 tsuna
0 siblings, 0 replies; only message in thread
From: tsuna @ 2010-03-20 1:59 UTC (permalink / raw
To: git
[-- Attachment #1: Type: text/plain, Size: 186 bytes --]
Hi there,
I attached a trivial patch that auto-corrects a frequent typo does not
trigger any error with git pull.
I find it useful so I hope others will too.
--
Benoit "tsuna" Sigoure
[-- Attachment #2: 0001-Auto-correct-git-pull-ff-to-git-pull-ff.patch --]
[-- Type: application/octet-stream, Size: 814 bytes --]
From e4d43640d80fca93fda45d13e02f3fedf09f639a Mon Sep 17 00:00:00 2001
From: Benoit Sigoure <tsunanet@gmail.com>
Date: Wed, 17 Mar 2010 17:11:44 -0700
Subject: [PATCH] Auto-correct git pull -ff to git pull --ff.
This frequent typo does not trigger any error because git pull doesn't
recognize -ff and passes it through to git fetch, which parses it as a
short option, as if the option -f was simply specified twice.
---
git-pull.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-pull.sh b/git-pull.sh
index d45b50c..be85032 100755
--- a/git-pull.sh
+++ b/git-pull.sh
@@ -66,7 +66,7 @@ do
squash=--squash ;;
--no-sq|--no-squ|--no-squa|--no-squas|--no-squash)
squash=--no-squash ;;
- --ff)
+ -ff|--ff)
no_ff=--ff ;;
--no-ff)
no_ff=--no-ff ;;
--
1.7.0.2.279.gf1ba1c
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-03-20 1:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-20 1:59 [PATCH] Auto-correct git pull -ff to git pull --ff tsuna
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).