Comments (5)
You can do this with a more extensive commitMessageTemplate
string or the new (as yet unreleased) commitMessageTemplateFile
specification. You would need to add your custom message at the top and copy the default commit message template into your template.
@twpayne I wonder if it might be possible to have something like {{ includeTemplate "chezmoi:COMMIT_MESSAGE.tmpl" }}
work?
from chezmoi.
You can do this with a more extensive
commitMessageTemplate
string or the new (as yet unreleased)commitMessageTemplateFile
specification. You would need to add your custom message at the top and copy the default commit message template into your template.
Exactly. Please wait for commitMessageTemplateFile
and copy the default commit message template.
@twpayne I wonder if it might be possible to have something like
{{ includeTemplate "chezmoi:COMMIT_MESSAGE.tmpl" }}
work?
I think that something like this makes sense when chezmoi has multiple built-in templates. Right now, this is not the case and copying the standard template instead makes sense.
from chezmoi.
@twpayne I wonder if it might be possible to have something like
{{ includeTemplate "chezmoi:COMMIT_MESSAGE.tmpl" }}
work?I think that something like this makes sense when chezmoi has multiple built-in templates. Right now, this is not the case and copying the standard template instead makes sense.
Not that the COMMIT_MESSAGE.tmpl
file has changed recently, but includeTemplate "chezmoi:COMMIT_MESSAGE.tmpl"
support would make it so that if it were updated, people would get the benefit on upgrade without having to learn that COMMIT_MESSAGE.tmpl
has been updated upstream.
from chezmoi.
There's an added complication that with #3322 the structure of the data passed to COMMIT_MESSAGE.tmpl
changed from passing just the git status as .
to passing a full set of chezmoi template variables in .chezmoi
with the status in .chezmoi.status
and a bunch of field renames for consistency. Effectively, #3322 makes the data passed to COMMIT_MESSAGE.tmpl
part of chezmoi's API (relevant XKCD.
from chezmoi.
Fixed by #3322. Please re-open if you have further questions.
from chezmoi.
Related Issues (20)
- Customize the path for a single file HOT 3
- KeepassXC mode: "open" does not work with args ["--yubikey", "1:2343434"] HOT 1
- Way to add a file without `applying` HOT 4
- Using scripts on Windows? HOT 3
- FEATURE REQUEST: chezmoi mv HOT 3
- Add support to gopass multiline values HOT 2
- Setup branches inside config HOT 1
- New machine and some files just aren't there/claimed as unmanaged HOT 6
- Super Slow on my Windows HOT 1
- Chezmoi with NeoVim installed with Kickstarter and Lazy as Plugin Manager HOT 4
- Open editor with appropiate file extension when using template files HOT 1
- Chezmoi init works on Windows but not in Linux HOT 2
- chezmoi cd - modifies (breaks) shell environment HOT 2
- Wrong phonetics
- chezmoi: .chezmoiscripts/linux-install-packages.sh: inconsistent state HOT 3
- Windows template script is unexpectedly run on Linux HOT 2
- Installing on windows fails due to windows defender HOT 5
- Windows Defender on Windows 11 reported chezmoi winget package as infected by Trojan:Win32/Wacatac.B!ml HOT 1
- chezmoi writes garbage to terminal when exiting HOT 7
- Add configs from WSL to chezmoi HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chezmoi.