2

I realize you can set the depth of a submodule manually when updating it, see here, but is it possible to set that automatically, say as an option in the gitconfig? This way I could set it so when updating a submodule it only ever brings down a revision history of depth 2?

Community
  • 1
  • 1
a sandwhich
  • 4,352
  • 12
  • 41
  • 62

1 Answers1

1

No, it isn't possible (for now, mid-2014) through git config.

You could define an alias or a special script to add that parameters, but you can set depth natively with git alone.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250