contrib: remove "emacs" directory

While the "emacs/" directory still exists, all of its code has been replaced with stubs in 6d5ed4836db (git{,-blame}.el: remove old bitrotting Emacs code, 2018-04-11). Instead, the recommendation is to use Emacs' own vc-annotate mode. Remove the code altogether. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed May 12, 2025 at 11:19 UTC 95bc4474190515ca03ebe8719951949ecef73a6c
3 files changed -45
contrib/emacs/README deleted
-33
@@ -1,33 +0,0 @@
1 -This directory used to contain various modules for Emacs support.
2 -
3 -These were added shortly after Git was first released. Since then
4 -Emacs's own support for Git got better than what was offered by these
5 -modes. There are also popular 3rd-party Git modes such as Magit which
6 -offer replacements for these.
7 -
8 -The following modules were available, and can be dug up from the Git
9 -history:
10 -
11 -* git.el:
12 -
13 - Wrapper for "git status" that provided access to other git commands.
14 -
15 - Modern alternatives to this include Magit, and VC mode that ships
16 - with Emacs.
17 -
18 -* git-blame.el:
19 -
20 - A wrapper for "git blame" written before Emacs's own vc-annotate
21 - mode learned to invoke git-blame, which can be done via C-x v g.
22 -
23 -* vc-git.el:
24 -
25 - This file used to contain the VC-mode backend for git, but it is no
26 - longer distributed with git. It is now maintained as part of Emacs
27 - and included in standard Emacs distributions starting from version
28 - 22.2.
29 -
30 - If you have an earlier Emacs version, upgrading to Emacs 22 is
31 - recommended, since the VC mode in older Emacs is not generic enough
32 - to be able to support git in a reasonable manner, and no attempt has
33 - been made to backport vc-git.el.
contrib/emacs/git-blame.el deleted
-6
@@ -1,6 +0,0 @@
1 -(error "git-blame.el no longer ships with git. It's recommended
2 -to replace its use with Emacs's own vc-annotate. See
3 -contrib/emacs/README in git's
4 -sources (https://github.com/git/git/blob/master/contrib/emacs/README)
5 -for more info on suggested alternatives and for why this
6 -happened.")
contrib/emacs/git.el deleted
-6
@@ -1,6 +0,0 @@
1 -(error "git.el no longer ships with git. It's recommended to
2 -replace its use with Magit, or simply delete references to git.el
3 -in your initialization file(s). See contrib/emacs/README in git's
4 -sources (https://github.com/git/git/blob/master/contrib/emacs/README)
5 -for suggested alternatives and for why this happened. Emacs's own
6 -VC mode and Magit are viable alternatives.")