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

Re: [PATCH] Simplified the invocation of command action in submodule

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 9, 2008, 08:19 UTC
Message-ID
<7vsl17l8bi.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1199851140-31853-1-git-send-email-imyousuf@gmail.com>
imyousuf@gmail.com writes:
Show 9 quoted lines
> diff --git a/git-submodule.sh b/git-submodule.sh
> index ad9fe62..8a29382 100755
> --- a/git-submodule.sh
> +++ b/git-submodule.sh
> @@ -16,6 +16,7 @@ update=
>  status=
>  quiet=
>  cached=
> +command=

Doesn't the patch make some if not all of the above variables unused?

Show 9 quoted lines
>  	case "$1" in
>  	add)
>  		add=1
> +		command="module_$1"
>  		;;
>  	init)
> -		init=1
> +		command="modules_$1"
>  		;;
Does the remaining code still use $add?
Previous: imyousuf@gmail.comNext: Imran M Yousuf
Message 2 of 12 in “Simplified the invocation of command action in submodule”
  1. Simplified the invocation of command action in submoduleimyousuf@gmail.com, Jan 9, 2008
  2. Junio C HamanoJan 9, 2008
  3. Imran M YousufJan 9, 2008
  4. Johannes SixtJan 9, 2008
  5. Imran M YousufJan 9, 2008
  6. Johannes SixtJan 9, 2008
  7. Imran M YousufJan 9, 2008
  8. Johannes SixtJan 9, 2008
  9. Imran M YousufJan 9, 2008
  10. Junio C HamanoJan 9, 2008
  11. Lars HjemliJan 9, 2008
  12. Imran M YousufJan 10, 2008

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.