git commit fails under some circumstances

From: Laszlo Papp <hidden>
Date: 2016-06-15 22:50:58

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 [off-list ref]"'
root /home/djszapi/Projects/kde/attica/build
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help