Primary repository:
git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
GitHub (backup, pull requests, issue tracking):
git clone https://github.com/util-linux/util-linux.git
It's recommended to use github.com for development.
Branches:
master — continuous development, never feature-frozenstable/vX.Y — stable releases, branched from masterSince version 2.40, stabilization is done exclusively in stable/ branches.
The versioning scheme is <major>.<minor>.<maintenance>. The minor version is incremented roughly twice per year.
Before each release there are typically two release candidates:
rc1 (1-2 weeks) — bug fixes onlyrc2 (1-2 weeks) — translations, fatal/trivial bug fixesThe period between a release and the next rc1 is the merge window.
git format-patch and git send-email to submit patches to the mailing list (see README).subsystem: descriptiongit commit -s).Fixes: when the commit resolves an issue.Addresses: when the commit only partly implements requested changes.Fixes: https://github.com/util-linux/util-linux/issues/NNNFork the repository on GitHub.
Create a branch for your work (do not use master for contributions):
git checkout master git branch my-feature git checkout my-feature
Keep your branch up to date by rebasing on master:
git fetch --all git checkout master git merge origin/master git checkout my-feature git rebase master
Push and create a pull request:
git push yourgit my-feature
When resubmitting after review, incorporate reviewer comments and force-push the updated branch:
git rebase -i master # fix things git push -f yourgit my-feature
After your branch is merged or rejected, clean up:
git branch -d my-feature git push yourgit :my-feature
The preferred coding style is based on the Linux kernel coding style: https://docs.kernel.org/process/coding-style.html
FIXME: with a description for known issues you are not fixing in the current change.else after non-returning functions.if () { } else { } syntax.-h, --help and -V, --version are reserved.Some commands have Open Group / POSIX requirements: cal, col, ipcrm, ipcs, kill, line, logger, mesg, more, newgrp, pg, renice.
When modifying these, do not conflict with the latest standard. New short options should not be added before they are part of the standard; new long options are acceptable.