Message: previous - next
Month: December 2013

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

git clean -dxff

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


  Is there any difference between:

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


  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?


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