Skip to contentSkip to conversation

pre-rebase hook: capture documentation in a <<here document

PATCH Stefan Beller 2 participants 2 messages Jul 10, 2017 – Jul 11, 2017

lore
Share & tools
lore
#0 lore raw

From: Jonathan Nieder <[email protected]>

Without this change, the sample hook does not pass a syntax check (sh -n):

  $ sh -n hooks--pre-rebase.sample
  hooks--pre-rebase.sample: line 101: syntax error near unexpected token `('
  hooks--pre-rebase.sample: line 101: `   merged into it again (either directly or indirectly).'

---

Junio wrote in "What's-cooking":

Quoted 6 lines

... I do not know how well they are tested
in the field by people using 'master' in their everyday workflow. Ideally, our release process wants to see more people using 'next' in their everyday workflow to keep 'master' more stable than any tagged release, but I do not have a good idea on how to encourage it more than we currently do.

Our internal release of git @ Google is debian experimental, which is basically the 'next' branch + this patch + another patch.

AFAICT It is a resend of
https://public-inbox.org/git/20120308122105.GA1562@burratino/

As Jonathan is a Debian Developer, it is easy for us to base our internal version onto debian experimental, but long term we may want to base our internal version on the original next. :) To do so, upstream this one last meaningful patch.

The 'another patch' from above is changing and hardcoding the version number, which we do not want to upstream.

Thanks,
Stefan

 templates/hooks--pre-rebase.sample | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
templates/hooks--pre-rebase.sample +3 -3
index 053f111..b7f81c1 100755
@@ -88,9 +88,7 @@ else
 	exit 1
 fi
 
-exit 0
-
-################################################################
+<<\DOC_END
 
 This sample hook safeguards topic branches that have been
 published from being rewound.
@@ -167,3 +165,5 @@ To compute (2):
 	git rev-list master..topic
 
 	if this is empty, it is fully merged to "master".
+
+DOC_END
Signature · 1 line
1.8.5.3
#1 lore raw
Quoted 15 lines · Stefan Beller

Junio wrote in "What's-cooking":

Quoted 6 lines

... I do not know how well they are tested
in the field by people using 'master' in their everyday workflow. Ideally, our release process wants to see more people using 'next' in their everyday workflow to keep 'master' more stable than any tagged release, but I do not have a good idea on how to encourage it more than we currently do.

Our internal release of git @ Google is debian experimental, which is basically the 'next' branch + this patch + another patch.

AFAICT It is a resend of
https://public-inbox.org/git/20120308122105.GA1562@burratino/

Quoted 7 lines

As Jonathan is a Debian Developer, it is easy for us to base our internal version onto debian experimental, but long term we may want to base our internal version on the original next. :) To do so, upstream this one last meaningful patch.

The 'another patch' from above is changing and hardcoding the version number, which we do not want to upstream.

Thanks for sending this in. I had wanted to do so myself so I could easily automate building Git packages based on the Debian packaging, but I never got around to it.

Signature · 3 lines
brian m. carlson / brian with sandals: Houston, Texas, US
https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204