trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: December 2013

http://git.trinitydesktop.org/cgit/scripts/tree/switch_all_submodules_to_head_and_clean

From: "David C. Rankin" <drankinatty@...>
Date: Mon, 23 Dec 2013 21:03:55 -0600
Git gurus,

  A couple of questions:

(1) Why does the new script contain 'ff' in the following when there is no
provision to use the -f option more than once in
https://www.kernel.org/pub/software/scm/git/docs/git-clean.html:

git clean -dxff

  shouldn't it just be 'git clean -dxf'

(2)

  Is there any difference between:

  git submodule foreach "git checkout $branch"
  git submodule foreach "$THISSCRIPT $gituser"

  and

  git submodule foreach "git checkout $branch && $THISSCRIPT $gituser"

  logically it looks like the answer is nothing, but it never hurts to ask.

  Additionally, I've been using the --recursive option with the submodule
foreach calls:

  git submodule update --recursive
  git submodule foreach --recursive "git checkout $branch"

  Is there any reason against continuing to use the --recursive flag if we are
now calling $THISSCRIPT recursively?

  Thanks.

-- 
David C. Rankin, J.D.,P.E.