1. 06 3月, 2008 1 次提交
    • M
      git-submodule - Allow adding a submodule in-place · d4264ca3
      Mark Levedahl 提交于
      When working in the top-level project, it is useful to create a new
      submodule as a git repo in a subdirectory, then add that submodule to
      the top-level in place.
      
      This patch allows "git submodule add <intended url> subdir" to add the
      existing subdir to the current project.  The presumption is the user will
      later push / clone the subdir to the <intended url> so that future
      submodule init / updates will work.
      
      Absent this patch, "git submodule add" insists upon cloning the subdir
      from a repository at the given url, which is fine for adding an existing
      project in, but less useful when adding a new submodule from scratch to an
      existing project.  The former functionality remains, and the clone is
      attempted if the subdir does not already exist as a valid git repo.
      Signed-off-by: NMark Levedahl <mlevedahl@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d4264ca3
  2. 21 1月, 2008 1 次提交
  3. 07 1月, 2008 1 次提交
    • D
      Documentation: rename gitlink macro to linkgit · 5162e697
      Dan McGee 提交于
      Between AsciiDoc 8.2.2 and 8.2.3, the following change was made to the stock
      Asciidoc configuration:
      
      @@ -149,7 +153,10 @@
       # Inline macros.
       # Backslash prefix required for escape processing.
       # (?s) re flag for line spanning.
      -(?su)[\\]?(?P<name>\w(\w|-)*?):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
      +
      +# Explicit so they can be nested.
      +(?su)[\\]?(?P<name>(http|https|ftp|file|mailto|callto|image|link)):(?P<target>\S*?)(\[(?P<attrlist>.*?)\])=
      +
       # Anchor: [[[id]]]. Bibliographic anchor.
       (?su)[\\]?\[\[\[(?P<attrlist>[\w][\w-]*?)\]\]\]=anchor3
       # Anchor: [[id,xreflabel]]
      
      This default regex now matches explicit values, and unfortunately in this
      case gitlink was being matched by just 'link', causing the wrong inline
      macro template to be applied. By renaming the macro, we can avoid being
      matched by the wrong regex.
      Signed-off-by: NDan McGee <dpmcgee@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      5162e697
  4. 28 12月, 2007 1 次提交
  5. 17 12月, 2007 1 次提交
  6. 25 9月, 2007 1 次提交
    • M
      git-submodule - allow a relative path as the subproject url · f31a522a
      Mark Levedahl 提交于
      This allows a subproject's location to be specified and stored as relative
      to the parent project's location (e.g., ./foo, or ../foo). This url is
      stored in .gitmodules as given. It is resolved into an absolute url by
      appending it to the parent project's url when the information is written
      to .git/config (i.e., during submodule add for the originator, and
      submodule init for a downstream recipient). This allows cloning of the
      project to work "as expected" if the project is hosted on a different
      server than when the subprojects were added.
      Signed-off-by: NMark Levedahl <mdl123@verizon.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f31a522a
  7. 07 7月, 2007 2 次提交
  8. 02 7月, 2007 1 次提交
  9. 06 6月, 2007 1 次提交
  10. 27 5月, 2007 1 次提交
    • L
      Add git-submodule command · 70c7ac22
      Lars Hjemli 提交于
      This command can be used to initialize, update and inspect submodules. It
      uses a .gitmodules file, readable by git-config, in the top level directory
      of the 'superproject' to specify a mapping between submodule paths and
      repository url.
      
      Example .gitmodules layout:
      
      [module "git"]
      	url = git://git.kernel.org/pub/scm/git/git.git
      
      With this entry in .gitmodules (and a commit reference in the index entry for
      the path "git"), the command 'git submodule init' will clone the repository
      at kernel.org into the directory "git".
      
      Known issues
      ============
      There is currently no way to override the url found in the .gitmodules file,
      except by manually creating the subproject repository. The place to fix this
      in the script has a rather long comment about a possible plan.
      
      Funny paths will be quoted in the output from git-ls-files, but git-submodule
      does not attempt to unquote (or even detect the presence of) such paths.
      Signed-off-by: NLars Hjemli <hjemli@gmail.com>
      Signed-off-by: NJunio C Hamano <junkio@cox.net>
      70c7ac22