git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Delete gitlink entry but keep .gitmodules file unmodified
@ 2012-04-18 13:19 Semen Vadishev
  2012-04-18 13:42 ` Jens Lehmann
  0 siblings, 1 reply; 4+ messages in thread
From: Semen Vadishev @ 2012-04-18 13:19 UTC (permalink / raw)
  To: git

Suppose one has a properly initialized submodule in a tree like this:

$ git ls-tree HEAD
100644 blob d208248ba4ab1d1791dc27f451dcaedb87dc19e1	.gitmodules
160000 commit ec633ea81e3cf64c3735ef4acd5ff9a490ed54eb	ext
100644 blob 597d6924118c00054efd526d9e48f68198f7da12	file.txt

$ git show HEAD:.gitmodules
[submodule "ext"]
         path = ext
         url = $URL

Then one pulls a modification that replaces 'ext' gitlink by some blob 
or tree entry, but keeps '.gitmodules' the same:

$ git ls-tree HEAD
100644 blob d208248ba4ab1d1791dc27f451dcaedb87dc19e1	.gitmodules
040000 tree 82e3a754b6a0fcb238b03c0e47d05219fbf9cf89	ext
100644 blob 597d6924118c00054efd526d9e48f68198f7da12	file.txt

Are there any possible downsides of such modification we should be aware of?

Thanks,

-- 
Semen Vadishev,
TMate Software,
http://subgit.com/ - git+svn on the server side!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-04-19  9:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-18 13:19 Delete gitlink entry but keep .gitmodules file unmodified Semen Vadishev
2012-04-18 13:42 ` Jens Lehmann
2012-04-18 14:34   ` Semen Vadishev
2012-04-19  9:10     ` Jens Lehmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).