From: Dmitry Gutov <dgutov@yandex.ru>
To: Ed Avis <eda@waniasset.com>, 21166@debbugs.gnu.org
Subject: bug#21166: 24.4; vc-mode and git error on newly added file to new repository
Date: Fri, 31 Jul 2015 20:25:33 +0300 [thread overview]
Message-ID: <55BBAF8D.90805@yandex.ru> (raw)
In-Reply-To: <7E039918541B4C4183BFDB8F015C743032E5C24D@WCL-EXCH02.wcl.local>
On 07/31/2015 05:43 PM, Ed Avis wrote:
> Type some text in the buffer, save with C-x C-s, then ask for a diff
> with C-x v =. This fails with the following text at the bottom of the screen:
>
> -UU-:----F1 a All L1 Git@master (Fundamental) ---
> fatal: bad revision 'HEAD'
Indeed, I can reproduce this.
But it's a relatively rare situation (no commits in the repo yet), and
the git diff output will be less useful than usual, since it's a given
that all your files are either added or simply unregistered.
To fix this, it seems we'll have to add an extra process call to
determine whether HEAD is a valid reference (Git internals apparently do
that). I'm not sure it's worth it.
next prev parent reply other threads:[~2015-07-31 17:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-31 14:43 bug#21166: 24.4; vc-mode and git error on newly added file to new repository Ed Avis
2015-07-31 17:25 ` Dmitry Gutov [this message]
2015-07-31 17:27 ` Ed Avis
2015-07-31 17:44 ` Dmitry Gutov
2015-08-04 14:58 ` Ed Avis
2020-08-25 9:04 ` Lars Ingebrigtsen
2020-10-11 3:07 ` Lars Ingebrigtsen
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=55BBAF8D.90805@yandex.ru \
--to=dgutov@yandex.ru \
--cc=21166@debbugs.gnu.org \
--cc=eda@waniasset.com \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.