Codebase list emacs-git-modes / 6cfbb5d
New upstream snapshot. Debian Janitor 1 year, 3 months ago
8 changed file(s) with 108 addition(s) and 117 deletion(s). Raw diff Collapse all Expand all
1515 LOAD_PATH ?= $(addprefix -L ../,$(DEPS))
1616 LOAD_PATH += -L .
1717
18 PREFIX ?= /usr/local
19
2018 all: lisp
2119
2220 help:
2321 $(info make all - generate byte-code and autoloads)
2422 $(info make lisp - generate byte-code and autoloads)
2523 $(info make clean - remove generated files)
26 $(info make install - install in $(PREFIX))
2724 @printf "\n"
2825
29 lisp: $(ELCS) loaddefs
26 lisp: $(ELCS) loaddefs check-declare
3027
3128 loaddefs: $(PKG)-autoloads.el
3229
3431 @printf "Compiling $<\n"
3532 @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) -f batch-byte-compile $<
3633
34 check-declare:
35 @printf " Checking function declarations\n"
36 @$(EMACS) -Q --batch $(EMACS_ARGS) $(LOAD_PATH) \
37 --eval "(check-declare-directory default-directory)"
38
3739 CLEAN = $(ELCS) $(PKG)-autoloads.el
3840
3941 clean:
40 @printf "Cleaning...\n"
42 @printf " Cleaning...\n"
4143 @rm -rf $(CLEAN)
4244
43 define LOADDEFS_TMPL
44 ;;; $(PKG)-autoloads.el --- automatically extracted autoloads
45 ;;
46 ;;; Code:
47 (add-to-list 'load-path (directory-file-name \
48 (or (file-name-directory #$$) (car load-path))))
49
50 ;; Local Variables:
51 ;; version-control: never
52 ;; no-byte-compile: t
53 ;; no-update-autoloads: t
54 ;; End:
55 ;;; $(PKG)-autoloads.el ends here
56 endef
57 export LOADDEFS_TMPL
58 #'
59
6045 $(PKG)-autoloads.el: $(ELS)
61 @printf "Generating $@\n"
62 @printf "%s" "$$LOADDEFS_TMPL" > $@
63 @$(EMACS) -Q --batch --eval "(progn\
64 (setq make-backup-files nil)\
65 (setq vc-handled-backends nil)\
66 (setq default-directory (file-truename default-directory))\
67 (setq generated-autoload-file (expand-file-name \"$@\"))\
68 (setq find-file-visit-truename t)\
69 (update-directory-autoloads default-directory))"
70
71 CP ?= install -p -m 644
72 MKDIR ?= install -p -m 755 -d
73 LISPDIR ?= $(PREFIX)/share/emacs/site-lisp/git-modes
74
75 .PHONY: install
76 install: lisp
77 @printf "Installing...\n"
78 @$(MKDIR) $(DESTDIR)$(LISPDIR)
79 @$(CP) $(ELS) $(ELCS) $(DESTDIR)$(LISPDIR)
46 @printf " Creating $@\n"
47 @$(EMACS) -Q --batch -l autoload -l cl-lib --eval "\
48 (let ((file (expand-file-name \"$@\"))\
49 (autoload-timestamps nil) \
50 (backup-inhibited t)\
51 (version-control 'never)\
52 (coding-system-for-write 'utf-8-emacs-unix))\
53 (write-region (autoload-rubric file \"package\" nil) nil file nil 'silent)\
54 (cl-letf (((symbol-function 'progress-reporter-do-update) (lambda (&rest _)))\
55 ((symbol-function 'progress-reporter-done) (lambda (_))))\
56 (let ((generated-autoload-file file))\
57 (update-directory-autoloads default-directory))))" \
58 2>&1 | sed "/^Package autoload is deprecated$$/d"
+0
-40
README.md less more
0 Git Config Modes
1 ================
2
3 Emacs major modes for various Git configuration files.
4
5 The list of contributors can be found
6 [here](https://github.com/magit/git-modes/graphs/contributors).
7
8 The following libraries are part of the `git-modes` package, which
9 is available from NonGNU ELPA as well as from Melpa.
10
11 `gitattributes-mode`
12 --------------------
13
14 Auto-/loading the library `gitattributes-mode` enabled the mode for
15 `.gitattributes`, `.git/info/attributes`, and `git/attributes` files.
16
17 `gitconfig-mode`
18 ----------------
19
20 Auto-/loading the library `gitconfig-mode` enables the mode for
21 `.gitconfig`, `.git/config`, `git/config`, and `.gitmodules` files.
22
23 `gitconfig-mode` derives from `conf-unix-mode`.
24
25 `gitignore-mode`
26 ----------------
27
28 Auto-/loading the library `gitignore-mode` enables the mode for
29 `.gitignore`, `.git/info/exclude`, and `git/ignore` files.
30
31 `gitignore-mode` derives from `conf-unix-mode`.
32
33 This mode may be of use in other files that don't have anything to do
34 with Git, for example:
35
36 ```lisp
37 (add-to-list 'auto-mode-alist
38 (cons "/.dockerignore\\'" 'gitignore-mode))
39 ```
0 * Git Config Modes
1
2 Emacs major modes for various Git configuration files.
3
4 The list of contributors can be found [[https://github.com/magit/git-modes/graphs/contributors][here]].
5
6 The following libraries are part of the ~git-modes~ package, which
7 is available from NonGNU ELPA as well as from Melpa.
8
9 ** ~gitattributes-mode~
10
11 Auto-/loading the library ~gitattributes-mode~ enabled the mode for
12 ~.gitattributes~, ~.git/info/attributes~, and ~git/attributes~ files.
13
14 ** ~gitconfig-mode~
15
16 Auto-/loading the library ~gitconfig-mode~ enables the mode for
17 ~.gitconfig~, ~.git/config~, ~git/config~, and ~.gitmodules~ files.
18
19 ~gitconfig-mode~ derives from ~conf-unix-mode~.
20
21 ** ~gitignore-mode~
22
23 Auto-/loading the library ~gitignore-mode~ enables the mode for
24 ~.gitignore~, ~.git/info/exclude~, and ~git/ignore~ files.
25
26 ~gitignore-mode~ derives from ~conf-unix-mode~.
27
28 This mode may be of use in other files that don't have anything
29 to do with Git, for example:
30
31 #+begin_src emacs-lisp
32 (add-to-list 'auto-mode-alist
33 (cons "/.dockerignore\\'" 'gitignore-mode))
34 #+end_src
35
36 #+html: <br><br>
37 #+html: <a href="https://github.com/magit/git-modes/actions/workflows/compile.yml"><img alt="Compile" src="https://github.com/magit/git-modes/actions/workflows/compile.yml/badge.svg"/></a>
38 #+html: <a href="https://elpa.nongnu.org/nongnu/git-modes.html"><img alt="NonGNU ELPA" src="https://elpa.nongnu.org/nongnu/git-modes.svg"/></a>
39 #+html: <a href="https://stable.melpa.org/#/git-modes"><img alt="MELPA Stable" src="https://stable.melpa.org/packages/git-modes-badge.svg"/></a>
40 #+html: <a href="https://melpa.org/#/git-modes"><img alt="MELPA" src="https://melpa.org/packages/git-modes-badge.svg"/></a>
0 emacs-git-modes (1.4.0+git20230116.1.1533b38-1) UNRELEASED; urgency=low
1
2 * New upstream snapshot.
3
4 -- Debian Janitor <janitor@jelmer.uk> Sun, 22 Jan 2023 00:13:17 -0000
5
06 emacs-git-modes (1.4.0-1) unstable; urgency=medium
17
28 * New upstream version 1.4.0
0 ;;; git-modes.el --- Major modes for editing Git configuration files -*- lexical-binding: t -*-
0 ;;; git-modes.el --- Major modes for editing Git configuration files -*- lexical-binding:t -*-
11
2 ;; Copyright (c) 2012-2013 Sebastian Wiesner
3 ;; Copyright (C) 2013-2015 Rüdiger Sonderfeld
4 ;; Copyright (C) 2012-2021 The Magit Project Contributors
2 ;; Copyright (c) 2012-2013 Sebastian Wiesner
3 ;; Copyright (C) 2013-2015 Rüdiger Sonderfeld
4 ;; Copyright (C) 2012-2023 The Magit Project Contributors
55
66 ;; Author: Sebastian Wiesner <lunaryorn@gmail.com>
77 ;; Rüdiger Sonderfeld <ruediger@c-plusplus.net>
99 ;; Maintainer: Jonas Bernoulli <jonas@bernoul.li>
1010 ;; Homepage: https://github.com/magit/git-modes
1111 ;; Keywords: convenience vc git
12 ;; Package-Requires: ((emacs "24.3"))
13 ;; Package-Version: 1.4.0
12
13 ;; Package-Version: 1.4.0.50-git
14 ;; Package-Requires: ((emacs "25.1"))
15
1416 ;; SPDX-License-Identifier: GPL-3.0-or-later
1517
16 ;; This file is free software; you can redistribute it and/or modify
18 ;; This file is free software: you can redistribute it and/or modify
1719 ;; it under the terms of the GNU General Public License as published
18 ;; by the Free Software Foundation; either version 3 of the License,
20 ;; by the Free Software Foundation, either version 3 of the License,
1921 ;; or (at your option) any later version.
20
22 ;;
2123 ;; This file is distributed in the hope that it will be useful,
2224 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
2325 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2426 ;; GNU General Public License for more details.
25
27 ;;
2628 ;; You should have received a copy of the GNU General Public License
27 ;; along with this file. If not, see <http://www.gnu.org/licenses/>.
29 ;; along with this file. If not, see <https://www.gnu.org/licenses/>.
2830
2931 ;;; Commentary:
3032
0 ;;; gitattributes-mode.el --- Major mode for editing .gitattributes files -*- lexical-binding: t -*-
1
2 ;; Copyright (C) 2013-2015 Rüdiger Sonderfeld
3 ;; Copyright (C) 2013-2021 The Magit Project Contributors
0 ;;; gitattributes-mode.el --- Major mode for editing .gitattributes files -*- lexical-binding:t -*-
1
2 ;; Copyright (C) 2013-2015 Rüdiger Sonderfeld
3 ;; Copyright (C) 2013-2023 The Magit Project Contributors
44
55 ;; Author: Rüdiger Sonderfeld <ruediger@c-plusplus.net>
66 ;; Maintainer: Jonas Bernoulli <jonas@bernoul.li>
77 ;; Homepage: https://github.com/magit/git-modes
88 ;; Keywords: convenience vc git
9
910 ;; SPDX-License-Identifier: GPL-3.0-or-later
1011
11 ;; This file is free software; you can redistribute it and/or modify
12 ;; This file is free software: you can redistribute it and/or modify
1213 ;; it under the terms of the GNU General Public License as published
13 ;; by the Free Software Foundation; either version 3 of the License,
14 ;; by the Free Software Foundation, either version 3 of the License,
1415 ;; or (at your option) any later version.
15
16 ;;
1617 ;; This file is distributed in the hope that it will be useful,
1718 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
1819 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1920 ;; GNU General Public License for more details.
20
21 ;;
2122 ;; You should have received a copy of the GNU General Public License
22 ;; along with this file. If not, see <http://www.gnu.org/licenses/>.
23 ;; along with this file. If not, see <https://www.gnu.org/licenses/>.
2324
2425 ;;; Commentary:
2526
0 ;;; gitconfig-mode.el --- Major mode for editing .gitconfig files -*- lexical-binding: t -*-
0 ;;; gitconfig-mode.el --- Major mode for editing .gitconfig files -*- lexical-binding:t -*-
11
2 ;; Copyright (c) 2012-2013 Sebastian Wiesner
3 ;; Copyright (C) 2012-2021 The Magit Project Contributors
2 ;; Copyright (c) 2012-2013 Sebastian Wiesner
3 ;; Copyright (C) 2012-2023 The Magit Project Contributors
44
55 ;; Author: Sebastian Wiesner <lunaryorn@gmail.com>
66 ;; Maintainer: Jonas Bernoulli <jonas@bernoul.li>
77 ;; Homepage: https://github.com/magit/git-modes
88 ;; Keywords: convenience vc git
9
910 ;; SPDX-License-Identifier: GPL-3.0-or-later
1011
11 ;; This file is free software; you can redistribute it and/or modify
12 ;; This file is free software: you can redistribute it and/or modify
1213 ;; it under the terms of the GNU General Public License as published
13 ;; by the Free Software Foundation; either version 3 of the License,
14 ;; by the Free Software Foundation, either version 3 of the License,
1415 ;; or (at your option) any later version.
15
16 ;;
1617 ;; This file is distributed in the hope that it will be useful,
1718 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
1819 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1920 ;; GNU General Public License for more details.
20
21 ;;
2122 ;; You should have received a copy of the GNU General Public License
22 ;; along with this file. If not, see <http://www.gnu.org/licenses/>.
23 ;; along with this file. If not, see <https://www.gnu.org/licenses/>.
2324
2425 ;;; Commentary:
2526
0 ;;; gitignore-mode.el --- Major mode for editing .gitignore files -*- lexical-binding: t -*-
0 ;;; gitignore-mode.el --- Major mode for editing .gitignore files -*- lexical-binding:t -*-
11
2 ;; Copyright (c) 2012-2013 Sebastian Wiesner
3 ;; Copyright (C) 2012-2021 The Magit Project Contributors
2 ;; Copyright (c) 2012-2013 Sebastian Wiesner
3 ;; Copyright (C) 2012-2023 The Magit Project Contributors
44
55 ;; Author: Sebastian Wiesner <lunaryorn@gmail.com>
66 ;; Maintainer: Jonas Bernoulli <jonas@bernoul.li>
77 ;; Homepage: https://github.com/magit/git-modes
88 ;; Keywords: convenience vc git
9
910 ;; SPDX-License-Identifier: GPL-3.0-or-later
1011
11 ;; This file is free software; you can redistribute it and/or modify
12 ;; This file is free software: you can redistribute it and/or modify
1213 ;; it under the terms of the GNU General Public License as published
13 ;; by the Free Software Foundation; either version 3 of the License,
14 ;; by the Free Software Foundation, either version 3 of the License,
1415 ;; or (at your option) any later version.
15
16 ;;
1617 ;; This file is distributed in the hope that it will be useful,
1718 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
1819 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1920 ;; GNU General Public License for more details.
20
21 ;;
2122 ;; You should have received a copy of the GNU General Public License
22 ;; along with this file. If not, see <http://www.gnu.org/licenses/>.
23 ;; along with this file. If not, see <https://www.gnu.org/licenses/>.
2324
2425 ;;; Commentary:
2526