git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: [RFE] install-doc-quick.sh should accept a commit-ish

From
Randall S. Becker <rsbecker@nexbridge.com>
Date
Dec 6, 2017, 16:48 UTC
Message-ID
<004001d36eb2$10f8ef20$32eacd60$@nexbridge.com>
In-Reply-To
<xmqqtvx3hkst.fsf@gitster.mtv.corp.google.com>
On December 6, 2017 11:40 AM, Junio C Hamano wrote:
Show 5 quoted lines
>"Randall S. Becker" <rsbecker@nexbridge.com> writes:
>> Having the git-manpages repo available is fantastic for platforms that 
>> cannot easily build documentation on demand, for example, when too 
>> many dependencies that do not build properly.
>> It would be really nice to have a version of install-doc-quick.sh to
either:
>> 1. Use whatever version is checked out in git-manpages; or
>> 2. Use the proper commit associated with the git commit being 
>> installed (0a8e923 for v2.6.0 , as an example); or
>> 3. Allow the commit to be passed through the Documentation Makefile on
demand so that any version of documentation can be installed.
>Do you mean something like this so that you can say "not the tip of the
master branch but this one?"
> Documentation/install-doc-quick.sh | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>diff --git a/Documentation/install-doc-quick.sh
b/Documentation/install-doc-quick.sh
>index 327f69bcf5..83764f7537 100755
>--- a/Documentation/install-doc-quick.sh
>+++ b/Documentation/install-doc-quick.sh
>@@ -3,8 +3,9 @@
> repository=${1?repository}
> destdir=${2?destination}
>+head=${3+master}
>+GIT_DIR=
>-head=master GIT_DIR=
> for d in "$repository/.git" "$repository"
> do
> 	if GIT_DIR="$d" git rev-parse refs/heads/master >/dev/null 2>&1

Providing I can pass that through make via something like quick-install-man head=commit-ish, that's what I'm hoping.

Cheers, Randall

Previous: Junio C Hamano
Message 3 of 3 in “[RFE] install-doc-quick.sh should accept a commit-ish”
  1. Randall S. BeckerDec 6, 2017
  2. Junio C HamanoDec 6, 2017
  3. Randall S. BeckerDec 6, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.