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

Re: Changled submodule cannot be "git added"

From
Jens Lehmann <jens.lehmann@web.de>
Date
Jun 15, 2010, 16:05 UTC
Message-ID
<4C17A4D5.5040100@web.de>
In-Reply-To
<20100615073720.GB3260@schottelius.org>
Am 15.06.2010 09:37, schrieb Nico -telmich- Schottelius:
Show 6 quoted lines
> Nico -telmich- Schottelius [Tue, Jun 15, 2010 at 09:25:14AM +0200]:
>> % git status
>> #       modified:   modules/tftpd_hpa (modified content)
> 
> Ok, found out that I changed stuff within modules/tftpd_hpa, instead of
> merging from the source.

To make such surprises visible is the intent of showing "(modified content)" here.

> Imho the git status output is a bit misleading, as I assume that
> I can git add stuff that's modified.

Maybe you just overlooked this line in the output of "git status": "(commit or discard the untracked or modified content in submodules)"

Show 7 quoted lines
> Regarding the other problem
> 
>> - Why does git checkout not remove modules/ethz_systems_private/,
>>   when switching from the master to the private branch?
>>   (the module is only registered in the private branch)
> 
> I'm still not sure what's the reason for that.

Because there might be stuff in there which is not tracked but you might hate loosing by switching a branch.

Previous: Nico -telmich- Schottelius
Message 3 of 3 in “Changled submodule cannot be "git added"”
  1. Nico -telmich- SchotteliusJun 15, 2010
  2. Nico -telmich- SchotteliusJun 15, 2010
  3. Jens LehmannJun 15, 2010

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.