From: Johannes Schindelin Date: Tue, 09 Jun 2015 09:36:57 GMT Subject: Re: [PATCH v2] git-rebase--interactive.sh: add config option for custom instruction format Message-ID: <9a61f06b14f58a0bd2b687e2aef2b805@www.dscho.org> In-Reply-To: <1433797202-97425-2-git-send-email-rappazzo@gmail.com> Hi, On 2015-06-08 23:00, Michael Rappazzo wrote: > diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh > index dc3133f..b92375e 100644 > --- a/git-rebase--interactive.sh > +++ b/git-rebase--interactive.sh > @@ -977,7 +977,9 @@ else > revisions=$onto...$orig_head > shortrevisions=$shorthead > fi > -git rev-list $merges_option --pretty=oneline --reverse --left-right > --topo-order \ > +format=$(git config --get rebase.instructionFormat) > +# the 'rev-list .. | sed' requires %m to parse; the instruction > requires %H to parse > +git rev-list $merges_option --format="%m%H ${format-%s}" --reverse > --left-right --topo-order \ These two lines are too long (longer than 80 columns)... Besides, are you sure you don't want to substitute an empty 'rebase.instructionFormat' by '%s'? I would have expected to read `${format:-%s}` (note the colon), but then, this was Junio's suggestion... Junio, what do you think, should we not rather substitute empty values by `%s` as if the config setting was unset? > $revisions ${restrict_revision+^$restrict_revision} | \ > sed -n "s/^>//p" | > while read -r sha1 rest Ciao, Johannes