Skip to content

Commit 1cbe054

Browse files
committed
🐛 gitignore.jj2: Move extra block to end
The extra block needs to override other rules which may have been imported.
1 parent 58f12dd commit 1cbe054

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# moban hashes
22
.moban.hashes
33

4-
54
# Extra rules from https://github.com/github/gitignore/
65
# Python rules
76
# Byte-compiled / optimized / DLL files

templates/gitignore.jj2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@
1919
# moban hashes
2020
.moban.hashes
2121

22-
{%block extra%}
23-
{%endblock%}
24-
2522
# Extra rules from https://github.com/github/gitignore/
2623
{% if gitignore_language %}
2724
# {{ gitignore_language }} rules
@@ -40,3 +37,6 @@
4037
# {{ ruleset }} rules
4138
{% include 'gitignore/Global/' + ruleset + '.gitignore' %}
4239
{% endfor %}
40+
41+
{%block extra%}
42+
{%endblock%}

0 commit comments

Comments
 (0)