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

git commit fails under some circumstances

From
LPLaszlo Papp <djszapi@archlinux.us>
Date
Apr 2, 2011, 15:18 UTC
Message-ID
<AANLkTikHRM10p9e8XCzuiih7cYtQRG7Az2Qn5qtPzhZJ@mail.gmail.com>
Hi,
There are 2 bugs and 1 wish in this case:
1) It says "Changes to be committed:", but they are actually not
committed, there cannot even be committed since they were not added
"properly". This output is bogus
2) error: Error building trees
---
3) It would be nice to have one command (with no (git) alias for sure)
to see the difference like "git diff" but also the new files.

Best Regards, Laszlo Papp

========

root /home/djszapi/Projects/kde/attica/build # git add -N ../lib/achievement.cpp ../lib/achievement.h ../lib/achievementparser.cpp ../lib/achievementparser.h root /home/djszapi/Projects/kde/attica/build # git status # On branch master # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # new file: ../lib/achievement.cpp # new file: ../lib/achievement.h # new file: ../lib/achievementparser.cpp # new file: ../lib/achievementparser.h # # Changes not staged for commit: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: ../lib/CMakeLists.txt # modified: ../lib/achievement.cpp # modified: ../lib/achievement.h # modified: ../lib/achievementparser.cpp # modified: ../lib/achievementparser.h # modified: ../lib/listjob_inst.cpp # modified: ../lib/provider.cpp # modified: ../lib/provider.h # modified: ../lib/providermanager.cpp # # Untracked files: # (use "git add <file>..." to include in what will be committed) # # ./ root /home/djszapi/Projects/kde/attica/build # gc lib/achievement.cpp: not added yet lib/achievement.h: not added yet lib/achievementparser.cpp: not added yet lib/achievementparser.h: not added yet error: Error building trees root /home/djszapi/Projects/kde/attica/build # alias gc alias gc='git commit --author="Laszlo Papp <djszapi@archlinux.us>"' root /home/djszapi/Projects/kde/attica/build

Next: Junio C Hamano
Message 1 of 8 in “git commit fails under some circumstances”
  1. Laszlo PappApr 2, 2011
  2. Re* git commit fails under some circumstancesJunio C Hamano, Apr 2, 2011
  3. Will PalmerApr 5, 2011
  4. Junio C HamanoApr 5, 2011
  5. Will PalmerApr 5, 2011
  6. Jeff KingApr 5, 2011
  7. Junio C HamanoApr 6, 2011
  8. Jeff KingApr 6, 2011

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.