* Adding 'Signed-off-by' to 'subtree add --squash' commits
@ 2014-07-07 9:32 Finucane, Stephen
2014-07-07 16:55 ` Andreas Schwab
0 siblings, 1 reply; 3+ messages in thread
From: Finucane, Stephen @ 2014-07-07 9:32 UTC (permalink / raw)
To: git@vger.kernel.org; +Cc: Gray, Mark D
Is it possible to "sign off" squashed commits created by the 'git subtree add ... --squash' command?
I ask, because the Signed-off-by tag is a requirement for a project I work on, but I've been unable to achieve this. A thorough search of Google/StackOverflow reveals nothing.
Regards,
Stephen Finucane
PS: A visualisation. The issue is the second "squash" commit
|\ Merge: 0000000 0000000
| | Author: Stephen Finucane <stephen.finucane@intel.com>
| | Date: Mon Jul 7 10:21:51 2014 +0100
| |
| | Add xxx as a git subtree
| |
| | - There is no problem with this commit.
| |
| | Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
| |
| * commit 0000000000000000000000000000000000000000
| Author: Stephen Finucane <stephen.finucane@intel.com>
| Date: Mon Jul 7 10:21:51 2014 +0100
|
| Squashed 'path/' content from commit 0000000
|
| git-subtree-dir: path
| git-subtree-split: 0000000000000000000000000000000000000000
|
* commit 0000000000000000000000000000000000000000
| Author: Stephen Finucane <stephen.finucane@intel.com>
| Date: Mon Jul 7 10:04:38 2014 +0100
...
--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Adding 'Signed-off-by' to 'subtree add --squash' commits
2014-07-07 9:32 Adding 'Signed-off-by' to 'subtree add --squash' commits Finucane, Stephen
@ 2014-07-07 16:55 ` Andreas Schwab
2014-07-07 17:20 ` Jeff King
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Schwab @ 2014-07-07 16:55 UTC (permalink / raw)
To: Finucane, Stephen; +Cc: git@vger.kernel.org, Gray, Mark D
"Finucane, Stephen" <stephen.finucane@intel.com> writes:
> Is it possible to "sign off" squashed commits created by the 'git subtree add ... --squash' command?
If it isn't directly possible, you can always use "git commit --amend -C
HEAD -s" to modify the commit afterwards.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Adding 'Signed-off-by' to 'subtree add --squash' commits
2014-07-07 16:55 ` Andreas Schwab
@ 2014-07-07 17:20 ` Jeff King
0 siblings, 0 replies; 3+ messages in thread
From: Jeff King @ 2014-07-07 17:20 UTC (permalink / raw)
To: Andreas Schwab; +Cc: Finucane, Stephen, git@vger.kernel.org, Gray, Mark D
On Mon, Jul 07, 2014 at 06:55:07PM +0200, Andreas Schwab wrote:
> "Finucane, Stephen" <stephen.finucane@intel.com> writes:
>
> > Is it possible to "sign off" squashed commits created by the 'git subtree add ... --squash' command?
>
> If it isn't directly possible, you can always use "git commit --amend -C
> HEAD -s" to modify the commit afterwards.
I think that is sensible, though these days you can spell "-C HEAD" as
"--no-edit", which I think is a bit more obvious.
-Peff
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-07-07 17:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-07 9:32 Adding 'Signed-off-by' to 'subtree add --squash' commits Finucane, Stephen
2014-07-07 16:55 ` Andreas Schwab
2014-07-07 17:20 ` Jeff King
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 NNTP newsgroup(s).