guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ‘core-updates’ merge is a squashed commit


From: Andreas Enge
Subject: Re: ‘core-updates’ merge is a squashed commit
Date: Thu, 4 Aug 2016 20:32:42 +0200
User-agent: Mutt/1.6.1 (2016-04-27)

On Thu, Aug 04, 2016 at 12:37:07PM -0400, Leo Famulari wrote:
> And if you don't want to sign every commit as you work (it can be
> tedious if your gpg-agent has a short cache lifetime), you can use
> git-rebase to sign a commit range before pushing, as in this shell
> script:
> 
> git-sign () {
>       case $# in
>               ("0") range=HEAD  ;;
>               ("1") range=$1  ;;
>               (*) echo "too many arguments" >&2; return 1 ;;
>       esac
> 
>       git rebase "$range" --exec "git commit --amend --no-edit --gpg-sign" || 
> git rebase --abort
> }
> 
> So, if I have 4 commits to push, I do `git-sign HEAD~4`.

So it is not enough to just do a
   git rebase -S
? I thought this would re-sign all my commits on top of the base of the rebase.
If not, this could explain my earlier mistake...

Andreas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]