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

Re: [PATCH v2 2/9] git-sh-setup.sh: add variable to use the stuck-long mode

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 27, 2014, 23:21 UTC
Message-ID
<xmqqtxcpm2ou.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1390524666-51274-3-git-send-email-sandals@crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
Show 13 quoted lines
> From: Nicolas Vigier <boklm@mars-attacks.org>
>
> If the variable $OPTIONS_STUCKLONG is not empty, then rev-parse
> option parsing is done in --stuck-long mode.
>
> Signed-off-by: Nicolas Vigier <boklm@mars-attacks.org>
> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
> ---
>  contrib/examples/git-checkout.sh | 1 +
>  contrib/examples/git-clean.sh    | 1 +
>  contrib/examples/git-clone.sh    | 1 +
>  contrib/examples/git-merge.sh    | 1 +
>  contrib/examples/git-repack.sh   | 1 +

Hmmm, especially given that nobody is exercising the ``updated'' code even in our testsuite, is it a good idea to touch these?

The STUCKLONG never existed back when they were scripted. It just adds noise when trying to view them for hints, no?

Show 13 quoted lines
> diff --git a/git-sh-setup.sh b/git-sh-setup.sh
> index fffa3c7..5f28b32 100644
> --- a/git-sh-setup.sh
> +++ b/git-sh-setup.sh
> @@ -72,6 +72,8 @@ if test -n "$OPTIONS_SPEC"; then
>  	parseopt_extra=
>  	[ -n "$OPTIONS_KEEPDASHDASH" ] &&
>  		parseopt_extra="--keep-dashdash"
> +	[ -n "$OPTIONS_STUCKLONG" ] &&
> +		parseopt_extra="$parseopt_extra --stuck-long"
>  
>  	eval "$(
>  		echo "$OPTIONS_SPEC" |
Previous: brian m. carlsonNext: brian m. carlson
Message 7 of 22 in “add --gpg-sign to rebase and pull”
  1. 0/9 add --gpg-sign to rebase and pullbrian m. carlson, Jan 24, 2014
  2. 1/9 cherry-pick, revert: add the --gpg-sign optionbrian m. carlson, Jan 24, 2014
  3. Junio C HamanoJan 24, 2014
  4. brian m. carlsonJan 24, 2014
  5. Junio C HamanoJan 24, 2014
  6. 2/9 git-sh-setup.sh: add variable to use the stuck-long modebrian m. carlson, Jan 24, 2014
  7. Junio C HamanoJan 27, 2014
  8. 3/9 am: parse options in stuck-long modebrian m. carlson, Jan 24, 2014
  9. 4/9 am: add the --gpg-sign optionbrian m. carlson, Jan 24, 2014
  10. Junio C HamanoJan 27, 2014
  11. 5/9 rebase: remove useless arguments checkbrian m. carlson, Jan 24, 2014
  12. 6/9 rebase: don't try to match -M optionbrian m. carlson, Jan 24, 2014
  13. 7/9 rebase: parse options in stuck-long modebrian m. carlson, Jan 24, 2014
  14. 8/9 rebase: add the --gpg-sign optionbrian m. carlson, Jan 24, 2014
  15. Junio C HamanoJan 27, 2014
  16. brian m. carlsonJan 27, 2014
  17. 9/9 pull: add the --gpg-sign option.brian m. carlson, Jan 24, 2014
  18. Junio C HamanoJan 27, 2014
  19. brian m. carlsonFeb 1, 2014
  20. Junio C HamanoFeb 3, 2014
  21. Nicolas VigierJan 24, 2014
  22. Junio C HamanoJan 24, 2014

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.