From: Laszlo Papp <djszapi@archlinux.us>
To: git@vger.kernel.org
Subject: git commit fails under some circumstances
Date: Sat, 2 Apr 2011 17:18:54 +0200 [thread overview]
Message-ID: <AANLkTikHRM10p9e8XCzuiih7cYtQRG7Az2Qn5qtPzhZJ@mail.gmail.com> (raw)
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 reply other threads:[~2011-04-02 15:19 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-02 15:18 Laszlo Papp [this message]
2011-04-02 19:16 ` Re* git commit fails under some circumstances Junio C Hamano
2011-04-05 8:14 ` Will Palmer
2011-04-05 8:18 ` Junio C Hamano
2011-04-05 8:23 ` Will Palmer
2011-04-05 17:36 ` Jeff King
2011-04-06 17:24 ` Junio C Hamano
2011-04-06 17:57 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AANLkTikHRM10p9e8XCzuiih7cYtQRG7Az2Qn5qtPzhZJ@mail.gmail.com \
--to=djszapi@archlinux.us \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).