Submodule-modes: Distinguish between update modes and update targets
[git-submod-enhancements.wiki.git] / Home.textile
index a7a7b2135bc33c4b786712702a7278b612b1660a..8882dd002c532210aa295d2701d09b84cbac8257 100644 (file)
@@ -2,30 +2,36 @@
 
 As Dscho put it, submodules are the "neglected ugly duckling" of git. Time to change that ...
 
-*Issues still to be tackled in this repo:*
-
-* Add a config option to control when a submodule is considered dirty (in progress)
-* Showing that a submodule has a HEAD not on any branch in "git status" (in progress)
-* gitk: Add popup menu for submodules to see the detailed history of changes
-* Check before a push in the superproject that all submodules HEADs are pushed
-* Let stash work recursively on submodules
-* Let checkout, checkout-index, read-tree & reset work recursively on submodules (in progress)
-* Let fetch run recursively on submodules (in progress)
-* git gui: Add submodule menu for adding and fetching submodules
-* Better support for merging and resolving merge conflicts of submodules (Heiko Voigt is working on the merge part)
-* Add means to specify which submodules shall be populated on clone
-* Add an "always-tip" mode
-
-*Issues already solved and merged into Junio's Repo:*
-
-* Since git 1.6.6:
-** New --submodule option to "git diff" (many thanks to Dscho for writing the core part!)
-** Display of submodule summaries instead of plain hashes in git gui and gitk
-* Since git 1.7.0:
-** "git status" and "git diff*" show submodules with untracked or modified files in their work tree as "dirty"
-** git gui: New popup menu for submodule diffs
-* Since git 1.7.1:
-** Show the reason why working directories of submodules are dirty (untracked content and/or modified content) in superproject
-* Expected in git 1.7.2:
-** Add parameters to the "--ignore-submodules" option for "git diff" and "git status" to control when a submodule is considered dirty
-** Add the "ignore" config option for the default behaviour of "--ignore-submodules". Both .git/config and .gitmodules are parsed for this option, the value set in .git/config. will override that from .gitmodules.
\ No newline at end of file
+*Issues currently being worked on*
+
+* [[Recursive submodule checkout]]: teach all work tree manipulating commands to update the submodule work trees according to the commit recorded in the superproject.
+* Teach @git fetch@ to also fetch commits for submodule not currently in the work tree into .git/modules/<name>
+
+*Issues still to be tackled*
+
+* Add functionality to move the .git directory of a submodule into the .git/modules directory of the superproject (either by adding a new @git submodule@ command or by providing a script in contrib/)
+* Add a git-config aware merge driver and make it the default for .gitmodules
+* Attempt a 3-way merge when @git mv@, @git rm@ or @git submodule add@ want to change a .gitmodules file which has unstaged changes
+* Add configuration options (global, per repo and per submodule) to set the default of @git push --recurse-submodules@
+* Add a tutorial explaining the different use cases and the configuration settings which suit them.
+* Add an option to @git submodule add@ to move the .git directory of a local repository to be added as submodule into the .git/modules directory of the superproject
+* Teach @grep@ the @--recursive@ option
+* Add means to specify which submodules shall be populated on clone (which I'd like to implement by teaching @git fetch@ to create submodule repos in .git/modules, recursive checkout will then do the rest)
+* Showing that a submodule has a HEAD not on any branch in the @git status@ of the superproject
+* @gitk@: Add popup menu for submodules to see the detailed history of changes
+* Teach @git prune@ the @--recurse-submodules@ option (and maybe honour the same default and options @git fetch@ uses)
+* Better support for displaying merge conflicts of submodules
+* @git gui@: Add submodule menu for adding and fetching submodules
+* @git status@ should call @git diff --submodule --ignore-submodules=dirty@ instead of @git submodule summary@ for providing a submodule summary when configured to do so.
+* Other commands that could benefit from a @--recurse-submodules@ option: @archive@, @branch@, @clean@, @commit@, @revert@, @tag@.
+* To enable history rewriting @git filter-branch@ could write a list of rewritten commits which can then be used to update submodule commits in a superproject.
+
+In the long run, git-submodule.sh should be converted to a rather simple wrapper script around core Git functionality, as more and more of that is implemented in the git core.
+
+*Submodule related bugs to fix*
+
+* Cherry picking across submodule creation fails even if the cherry pick doesn't touch any file in the submodules path
+* @git submodule add@ doesn't record the URL in .git/config when the submodule path doesn't exist
+* @git submodule add@ happily stages any unstaged modifications of the .gitmodules file together with the new section while it should error out telling the user to stash them (at least unless it attempts the 3-way merge described in the "Issues still to be tackled" paragraph)
+
+*[[Issues already solved and merged into Junio's Repo|history]]*