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

Changled submodule cannot be "git added"

From
NSNico -telmich- Schottelius <nico-linux-git@schottelius.org>
Date
Jun 15, 2010, 07:25 UTC
Message-ID
<20100615072514.GA3260@schottelius.org>
And another interesting behaviour of git with submodules:

-------------------------------------------------------------------------------- % git status # On branch master # Your branch is ahead of 'origin/master' by 8 commits. # # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # (commit or discard the untracked or modified content in submodules) # # modified: modules/tftpd_hpa (modified content) # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # modules/ethz_systems_private/ no changes added to commit (use "git add" and/or "git commit -a") % git add modules/tftpd_hpa # On branch master # Your branch is ahead of 'origin/master' by 8 commits. # # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # (commit or discard the untracked or modified content in submodules) # # modified: modules/tftpd_hpa (modified content) # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # modules/ethz_systems_private/ no changes added to commit (use "git add" and/or "git commit -a") --------------------------------------------------------------------------------

- Why can modules/tftpd_hpa not be added?
- 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)
Nico
-- 
New PGP key: 7ED9 F7D3 6B10 81D7 0EC5  5C09 D7DC C8E4 3187 7DF0
Please resign, if you signed 9885188C or 8D0E27A4.

Currently moving *.schottelius.org to http://www.nico.schottelius.org/ ...
Next: Nico -telmich- Schottelius
Message 1 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.