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

Re: [PATCH 11/22] entry.c: optionally checkout submodules

From
Shawn O. Pearce <spearce@spearce.org>
Date
May 24, 2007, 07:18 UTC
Message-ID
<20070524071819.GN28023@spearce.org>
In-Reply-To
<81b0412b0705232359g34321bb9hda50c3e29d7d3473@mail.gmail.com>
Alex Riesen <raa.lkml@gmail.com> wrote:
Show 10 quoted lines
> On 5/24/07, skimo@liacs.nl <skimo@liacs.nl> wrote:
> 
> >+       args[argc++] = "checkout";
> >+       if (state->force)
> >+           args[argc++] = "-f";
> >+       args[argc++] = sha1_to_hex(ce->sha1);
> >+       args[argc] = NULL;
> 
> You should consider passing "-v" if the superprojects read-tree
> had it. Some submodules will be annoyingly big

In 1.5.2 that -v shouldn't be necessary. The read-tree should start a timer, and if it has not reached 50% of its processing within 2 seconds it starts showing progress. Unless !istty(2), in which case it just sits there, chugging away at your drive.

I'm actually really unhappy with our !istty(2) means disable progress thing. git-gui knows how to read and show the progress meters, but nobody prints them anymore as 2 is a pipe. I have the same problem with a Java build tool that sometimes starts up an expensive Git operation (like a clone over SSH of a 60+ MiB project).

I've been considering adding a GIT_ISTTY environment variable to forcefully override the istty result, just to get the progress meters turned back on...

-- 
Shawn.
Previous: Alex RiesenNext: Sven Verdoolaege
Message 17 of 94 in “[RFC] Fourth round of support for cloning submodules”
  1. skimo@liacs.nlMay 23, 2007
  2. 01/22 git_connect: unset CONFIG_ENVIRONMENT in childskimo@liacs.nl, May 23, 2007
  3. 02/22 Add dump-configskimo@liacs.nl, May 23, 2007
  4. 03/22 git-config: add --remote option for reading config from remote reposkimo@liacs.nl, May 23, 2007
  5. 04/22 http.h: make fill_active_slots a function pointerskimo@liacs.nl, May 23, 2007
  6. 05/22 git-config: read remote config files over HTTPskimo@liacs.nl, May 23, 2007
  7. 06/22 unpack-trees.c: pass cache_entry * to verify_absent rather than just the nameskimo@liacs.nl, May 23, 2007
  8. 07/22 git-read-tree: take --submodules optionskimo@liacs.nl, May 23, 2007
  9. 08/22 unpack-trees.c: assume submodules are cleanskimo@liacs.nl, May 23, 2007
  10. 09/22 Add run_command_v_opt_cd: chdir into a directory before execskimo@liacs.nl, May 23, 2007
  11. 10/22 run-command: optionally clear git environmentskimo@liacs.nl, May 23, 2007
  12. Alex RiesenMay 24, 2007
  13. Shawn O. PearceMay 24, 2007
  14. Alex RiesenMay 24, 2007
  15. 11/22 entry.c: optionally checkout submodulesskimo@liacs.nl, May 23, 2007
  16. Alex RiesenMay 24, 2007
  17. Shawn O. PearceMay 24, 2007
  18. Sven VerdoolaegeMay 24, 2007
  19. Alex RiesenMay 24, 2007
  20. Martin WaitzMay 24, 2007
  21. Shawn O. PearceMay 25, 2007
  22. 12/22 git-checkout: pass --submodules option to git-read-treeskimo@liacs.nl, May 23, 2007
  23. 13/22 git-read-tree: treat null commit as empty treeskimo@liacs.nl, May 23, 2007
  24. 14/22 git_config: add void * for callback dataskimo@liacs.nl, May 23, 2007
  25. 15/22 make redirecting stdout to /dev/null available via run_command_v_optskimo@liacs.nl, May 23, 2007
  26. 16/22 unpack-trees.c: optionally clone submodules for later checkoutskimo@liacs.nl, May 23, 2007
  27. 17/22 entry.c: optionally checkout newly cloned submodulesskimo@liacs.nl, May 23, 2007
  28. Johannes SixtMay 24, 2007
  29. 18/22 git-clone: add --submodules for cloning submodulesskimo@liacs.nl, May 23, 2007
  30. 19/22 test for simple submodule checkout supportskimo@liacs.nl, May 23, 2007
  31. 20/22 checkout_submodule: checkout submodule on forced checkout of submodule dirskimo@liacs.nl, May 23, 2007
  32. 21/22 run-command: optionally redirect stderr to /dev/nullskimo@liacs.nl, May 23, 2007
  33. 22/22 ensure_submodule: fetch missing revisionsskimo@liacs.nl, May 23, 2007
  34. Johannes SchindelinMay 23, 2007
  35. Junio C HamanoMay 24, 2007
  36. Sven VerdoolaegeMay 24, 2007
  37. Shawn O. PearceMay 24, 2007
  38. Sven VerdoolaegeMay 24, 2007
  39. Johannes SchindelinMay 24, 2007
  40. Sven VerdoolaegeMay 24, 2007
  41. Johannes SchindelinMay 24, 2007
  42. Sven VerdoolaegeMay 24, 2007
  43. Johannes SchindelinMay 24, 2007
  44. Sven VerdoolaegeMay 24, 2007
  45. Johannes SchindelinMay 24, 2007
  46. Johannes SixtMay 24, 2007
  47. Johannes SchindelinMay 24, 2007
  48. Sven VerdoolaegeMay 24, 2007
  49. Johannes SchindelinMay 24, 2007
  50. Sven VerdoolaegeMay 24, 2007
  51. Johannes SchindelinMay 24, 2007
  52. Sven VerdoolaegeMay 24, 2007
  53. Johannes SchindelinMay 24, 2007
  54. Lars HjemliMay 24, 2007
  55. Junio C HamanoMay 24, 2007
  56. Lars HjemliMay 24, 2007
  57. Sven VerdoolaegeMay 24, 2007
  58. Linus TorvaldsMay 24, 2007
  59. Sven VerdoolaegeMay 24, 2007
  60. Linus TorvaldsMay 24, 2007
  61. Junio C HamanoMay 24, 2007
  62. Lars HjemliMay 24, 2007
  63. Johannes SchindelinMay 24, 2007
  64. Johannes SchindelinMay 24, 2007
  65. Sven VerdoolaegeMay 25, 2007
  66. Junio C HamanoMay 25, 2007
  67. Sven VerdoolaegeMay 25, 2007
  68. Johannes SchindelinMay 25, 2007
  69. Junio C HamanoMay 24, 2007
  70. Josef WeidendorferMay 25, 2007
  71. Johannes SchindelinMay 25, 2007
  72. Josef WeidendorferMay 25, 2007
  73. Johannes SchindelinMay 25, 2007
  74. Sven VerdoolaegeMay 25, 2007
  75. Johannes SchindelinMay 25, 2007
  76. Josef WeidendorferMay 25, 2007
  77. Johannes SchindelinMay 25, 2007
  78. Linus TorvaldsMay 25, 2007
  79. Josef WeidendorferMay 25, 2007
  80. Johannes SchindelinMay 25, 2007
  81. Josef WeidendorferMay 25, 2007
  82. Jakub NarebskiMay 25, 2007
  83. Johannes SchindelinMay 25, 2007
  84. Santi BéjarMay 24, 2007
  85. Sven VerdoolaegeMay 24, 2007
  86. Lars HjemliMay 24, 2007
  87. Martin WaitzMay 27, 2007
  88. Sven VerdoolaegeMay 27, 2007
  89. Martin WaitzMay 24, 2007
  90. Sven VerdoolaegeMay 24, 2007
  91. Johannes SchindelinMay 24, 2007
  92. Sven VerdoolaegeMay 24, 2007
  93. Petr BaudisMay 24, 2007
  94. Johannes SchindelinMay 24, 2007

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.