sonnyp/Commit
À propos
Commit message editor
Outils de développementProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 0
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalCommit
Commit is an editor that helps you write better Git and Mercurial commit messages.

Installation
Setup flatpak then
flatpak install re.sonny.Commit
flatpak run re.sonny.Commit # Follow instructions
Tips and trick
Emojis
right-click ➞ Insert Emoji or use the shortcut Ctrl+. 🎉️ The Emoji picker works in any GNOME app 👣️
Open Commit in the center of the screen
On GNOME you can make all new windows open in the center using
gsettings set org.gnome.mutter center-new-windows true
See https://gitlab.gnome.org/GNOME/mutter/-/issues/246
or set and use the move-to-center keybinding
gsettings set org.gnome.desktop.wm.keybindings move-to-center "['<Super><Control><Shift>Space']"
Toolbx container
If you use git from a Toolbx container, simply install flatpak in that container and git commit will be able to lunch Commit from your host.
Development
cd Commit
git submodule update --init --recursive
./src/local.js --readonly test/fixtures/with-body/COMMIT_EDITMSG
Make changes and hit Ctrl+Shift+Q on the Commit window to restart it.
To pass the tests you have to install a few dependencies
# Install development dependencies
sudo dnf install --assumeyes npm flatpak make desktop-file-utils gjs gtk4-devel libadwaita
npm install
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user --assumeyes --noninteractive flathub org.freedesktop.appstream-glib
# Run tests
make test
Flathub builds https://flathub.org/builds/#/apps/re.sonny.Commit
Maintainer
i18n
# To update the pot file
# xgettext -f po/POTFILES -o po/re.sonny.Commit.pot --no-wrap -cTRANSLATORS --from-code=UTF-8
# sed -i "s/Project-Id-Version: PACKAGE VERSION/Project-Id-Version: re.sonny.Commit/" po/re.sonny.Commit.pot
meson compile re.sonny.Commit-pot -C _build
# To create a translation
# msginit -i po/re.sonny.Commit.pot -o po/fr.po -l fr_FR.UTF-8
echo -n " fr" >> po/LINGUAS
meson compile re.sonny.Commit-update-po -C _build
# To update translations
# msgmerge -U po/*.po po/re.sonny.Commit.pot
meson compile re.sonny.Commit-update-po -C _build
See https://github.com/sonnyp/Commit/pull/14#issuecomment-894070878
Publish new version
meson compile re.sonny.Commit-update-po -C _build- Update version in
meson.build - git tag
- flathub
Building
host
cd Commit
meson --prefix $PWD/install build
ninja -C build install
Flatpak
Use GNOME Builder or
cd Commit
flatpak-builder --user --force-clean --repo=repo --install-deps-from=flathub flatpak re.sonny.Commit.json
flatpak --user remote-add --no-gpg-verify --if-not-exists Commit repo
flatpak --user install --reinstall --assumeyes Commit re.sonny.Commit
Credits
Commit is a fork of Gnomit wich was inspired by Komet.
Many thanks to its original author Aral Balkan of Small Technology Foundation.
Contributors
Copyright
- © 2020 Sonny Piers
- © 2018-2020 Aral Balkan, Small Technology Foundation
License
GPLv3 or later. Please see COPYING file.
Explorer des projets similaires
Chargement…