]> Lady’s Gitweb - HOMEDIR/blob - .gitconfig
Add recordjar canonicalization script
[HOMEDIR] / .gitconfig
1 #!git-config
2 ; @(#)🏠📂 HOMEDIR .gitconfig 2026-04-05T19:26:58Z
3 ; SPDX-FileCopyrightText: 2026 Lady <https://www.ladys.computer/about/#lady>
4 ; SPDX-License-Identifier: CC0-1.0
5
6 ;; ⁌ Git configuration
7 ;;
8 ;; This file provides some basic Git configuration.
9 ;; It is intended to be included from a user‐level Git configuration
10 ;; file; user‐specific settings like name and email are not provided.
11
12 ;; § Git aliases
13
14 [alias]
15
16 ;; ❦ `install-hooks´
17 ;;
18 ;; Installs the hooks in the `*/githooks´ subdirectories of
19 ;; `../HOMEDIR´ as symlinks.
20
21 install-hooks = "!: \"${path_HOMEDIR:=$(realpath ../HOMEDIR)}\" ; for file in \"${path_HOMEDIR}\"/*/githooks/* ; do : ; hookname=\"$(printf '%s\n' \"${file}\" | sed 's/^.*[/]\\([^/]*\\)[.][^/.]*$/\\1/')\" ; ln -fs \"${file}\" \"${GIT_DIR}\"/hooks/\"${hookname}\" ; done"
22
23 ;; ❦ `mit´
24 ;;
25 ;; Shorthand for `git commit´ which also sets a `Message-type´ trailer.
26
27 mit = commit --trailer Message-type:text/lesml
28
29 ;; ❦ `rename´
30 ;;
31 ;; Functions like `git commit --amend --reset-author´, but keeps the
32 ;; date of the commit.
33
34 rename = "!git commit --amend --reset-author --no-edit --date=\"$(git show -s | sed '/^Date:/!d;/^Date:/s/Date: *//')\""
35
36 ;; ❦ `showmsg´
37 ;;
38 ;; Prints the message of the current HEAD.
39
40 showmsg = "!git show -s | sed '/^ \\{4\\}/!d;s/ \\{4\\}//'"
41
42 ;; § Color settings
43
44 ;; ❦ Branch color settings
45 ;;
46 ;; Use yellow for the current branch and cyan for the remote branch.
47
48 [color "branch"]
49 current = yellow
50 remote = cyan
51
52 ;; ❦ Diff color settings
53 ;;
54 ;; Use bold red for new content and blue for outdated content.
55
56 [color "diff"]
57 old = blue
58 new = red bold
59
60 ;; § Commit settings
61
62 [commit]
63
64 ;; Do not sign commits.
65 ;; This is the default, but override any system configuration to do
66 ;; so.
67
68 gpgsign = false
69
70 ;; § Core settings
71
72 [core]
73
74 ;; Use CotEditor as the editor if it is defined; otherwise, use nano.
75
76 editor = "if command -v cot; then cot --wait \"$@\"; else nano \"$@\"; fi; true"
77
78 ;; Use composed forms of filenames, not decomposed forms, on macOS.
79
80 precomposeUnicode = true
81
82 ;; Don¦t escape non‐Ascii characters in paths.
83
84 quotepath = false
85
86 ;; Don¦t trust the c·time of files, because syncing/backup operations
87 ;; often adjust this and it will break rebases that are in progress
88 ;; should they do so.
89
90 trustctime = false
91
92 ;; § Initialization settings
93
94 [init]
95
96 ;; Use `🆕´ as the default branch name.
97
98 defaultbranch = 🆕
99
100 ;; § Pull settings
101
102 [pull]
103
104 ;; Only allow fastforward pulls.
105
106 ff = only
107
108 ;; § Trailer settings
109
110 ;; ❦ Message type trailer settings
111
112 [trailer "msgtype"]
113 key = Message-type
114 ifexists = replace
This page took 0.517433 seconds and 5 git commands to generate.