summaryrefslogtreecommitdiffhomepage
path: root/org/config_git.org
blob: 11cb9402d6efee0b01c207729463c6a76cde041f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
-*- mode: org -*-
#+TITLE:       configuration git
#+DESCRIPTION: documents - structuring, various output representations & search
#+FILETAGS:    :spine:hub:
#+AUTHOR:      Ralph Amissah
#+EMAIL:       [[mailto:ralph.amissah@gmail.com][ralph.amissah@gmail.com]]
#+COPYRIGHT:   Copyright (C) 2015 (continuously updated, current 2026) Ralph Amissah
#+LANGUAGE:    en
#+STARTUP:     content hideblocks hidestars noindent entitiespretty
#+PROPERTY:    header-args+ :eval never-export :exports code
#+PROPERTY:    header-args+ :noweb yes :padline no
#+PROPERTY:    header-args+ :results silent :cache no
#+PROPERTY:    header-args+ :mkdirp yes
#+OPTIONS:     H:3 num:nil toc:t \n:t ::t |:t ^:nil -:t f:t *:t
- magic single double-quote → " ← FIX changes hilighting behavior (occuring
  after it) in org document. INVESTIGATE (org-mode CONFIG?) FIND & FIX

- [[./doc-reform.org][doc-reform.org]]  [[./][org/]]

* git
** .gitignore :gitignore:

#+HEADER: :tangle "../.gitignore"
#+BEGIN_SRC gitignore
# git ls-files --others --exclude-from=.git/info/exclude
# git ls-files --others --ignored --exclude-standard --directory
# git check-ignore -v flake.lock
# git clean -ix
# find . -name "*_" | xargs rm -rf
# find . -name "*.o" | xargs rm -rf

# Deny everything, then whitelist what belongs in the repository.
#
# The practice is deliberate: a repository should hold what was decided to
# put in it, not whatever happened to be in the directory when someone ran
# "git add .". Build output, editor droppings, downloaded dependencies and
# exported binaries are numerous, are regenerated, and differ between
# machines; source is few and is chosen. So the default is no, and every
# yes below is a decision that can be read.
#
# To see what is being excluded, and why:
#   git status --ignored
#   git check-ignore -v <path>
#   git ls-files --others --ignored --exclude-standard --directory

*

# ── the repository itself ────────────────────────────────────────────────
!.gitignore
!README.md
!LICENSE

# ── directories have to be walked into before a file inside can match ────
!*/
# but not these, whatever they contain
build/
.build/
.direnv/
.gleam/
bin/
result
result-*

# ── documentation and notes, in any language directory ───────────────────
!**/*.md
!**/*.org

# ── nix ──────────────────────────────────────────────────────────────────
!**/*.nix
!**/flake.lock
!**/.envrc

# ── dlang ────────────────────────────────────────────────────────────────
!**/*.d
!**/dub.json
!**/dub.sdl
!**/dub.selections.json
*.o
*.a
*.lst

# ── gleam ────────────────────────────────────────────────────────────────
!**/*.gleam
# Erlang, for what Gleam reaches through FFI (a sha256, from OTP crypto)
!**/src/*.erl
# gleam.toml is the manifest, manifest.toml is the lockfile: both belong
!**/*.toml
*.beam
*.ez
erl_crash.dump

# ── ruby, when it arrives ────────────────────────────────────────────────
!**/*.rb
!**/Gemfile
!**/Gemfile.lock
!**/*.gemspec

# ── continuous integration ───────────────────────────────────────────────
!**/*.yml
!**/*.yaml
#+END_SRC