From e506ee7e5b4bd9d87299e0e55d5fa43b738c0933 Mon Sep 17 00:00:00 2001
From: Michael Prokop
+ Note: This cheatpage assumes that you are using git-core 1.5.6 or newer.
+ NOTE: Use 'Closes: #BUGID' for closing a bugreport, 'Thanks: Name
+< TODO / WIP:
+-- Michael Prokop <mika@debian.org>
+
+
+Maintainer documentation for initramfs-tools
+
+
+
+Table of Contents
+
+
+
+
+
+
+
+1. Definitions
+
+
+
+
+
+
+ version string
+ name of the alioth account
+mailaddress of the user
+
+2. Preparations
+
+
+
+
+
+
+
+# apt-get install git git-buildpackage dpkg-dev
+
+
+% export GIT_AUTHOR_EMAIL=<
+
+% git clone git://git.debian.org/git/kernel/initramfs-tools.git
+% cd initramfs-tools
+
+
+% git clone ssh://
+
+
+3. Workflow for daily work
+
+3.1 Implement new features
+
+
+
+
+
+
+% git checkout -b
+
+% $EDITOR $somefile
+% git add $somefile
+% git commit -s
+
+
+% git push origin
+3.2 Merge branches
+
+
+
+
+
+
+% git checkout
+
+% git rebase master
+
+
+% git checkout master
+% git merge
+
+% git push
+
+
+% git push origin :
+3.3 Test specific branch
+
+
+
+
+
+
+
+
+% git checkout -b somename/short-descr-of-new-feature origin/somename/short-descr-of-new-feature
+
+
+% git checkout -b somename/short-descr-of-new-feature
+
+
+git-dch --debian-branch="$(git branch | awk -F\* '/^* / { print $2}' )" --since=$(dpkg-parsechangelog | awk '/^Version:/ {print $2}') -S --id-length=7 --meta
+
+
+% git-buildpackage --git-debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" -tc
+
+4. Contribute
+
+
+
+
+
+
+
+% git format-patch HEAD
+
+5 Releasing new version
+
+
+
+
+
+
+
+% git-dch --debian-branch debian --release --since
+
+or more dynamically:
+
+
+% git-dch --meta --release --since v$(dpkg-parsechangelog | awk '/^Version:/ {print $2}') --debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" [--id-length=7] [--full]
+
+
+
+% git commit -a -s -m "Releasing debian version
+
+% git tag -s v"
+
+% git push
+% git push --tags
+
+
+
+Ressources
+
+
+
+
+
+
+
+
+Credits
+
+
+
+
+
+
+
+
+
+
-git-dch --debian-branch="$(git branch | awk -F\* '/^* / { print $2}' )" --since=$(dpkg-parsechangelog | awk '/^Version:/ {print $2}') -S --id-length=7 --meta
+% git-dch --debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" \
+ --since="$(dpkg-parsechangelog | awk '/^Version:/ {print $2}')" -S --id-length=7 --meta
-% git-buildpackage --git-debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" -tc
+% git-buildpackage --git-debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" -tc
@@ -207,12 +208,15 @@ on.
TODO / WIP:
--% git format-patch HEAD +% git format-patch -s -p origin/master ++ +
+% git send-email --to=initramfs-tools@packages.qa.debian.org $PATCHFILE[S]
NOTE: The most recent version of this document is available at +docs/maintainer-notes.html in the the git repository +or online at git.debian.org.
-- Note: This cheatpage assumes that you are using git-core 1.5.6 or newer. -
+| version string | |
| name of the alioth account | |
| mailaddress of the user | |
$mailaddress: | mailaddress of the user |
$username: | name of the alioth account |
$version: | version string |
$yourname: | your fullname |
-% export GIT_AUTHOR_EMAIL=<mailaddress > -% export DEBEMAIL=<mailaddress > -% export GIT_COMMITTER_EMAIL=<mailaddress > +export DEBEMAIL=$mailaddress +export DEBFULLNAME=$yourname +export GIT_AUTHOR_EMAIL=$mailaddress +export GIT_AUTHOR_NAME=$yourname +export GIT_COMMITTER_EMAIL=$mailaddress +export GIT_COMMITTER_NAME=$yourname
% git clone git://git.debian.org/git/kernel/initramfs-tools.git
% cd initramfs-tools
@@ -94,7 +100,7 @@ gray { color: gray; }
-% git clone ssh://username @git.debian.org/git/kernel/initramfs-tools.git +% git clone ssh://$username@git.debian.org/git/kernel/initramfs-tools.git % cd initramfs-tools
-% git checkout -busername /short-descr-of-new-feature +% git checkout -b$username/short-descr-of-new-feature
NOTE: Use 'Closes: #BUGID' for closing a bugreport, 'Thanks: Name
-<mailaddress>' for giving credits in your commit message. git-dch will use
this information for generating the changelog using the --meta option later
-on.
-% git push originusername /short-descr-of-new-feature +% git push origin$username/short-descr-of-new-feature
-% git checkoutusername /new-feature +% git checkout$username/new-feature
% git checkout master -% git mergeusername /new-feature +% git merge$username/new-feature
-% git push origin :username /short-descr-of-new-feature -% git branch -dusername /short-descr-of-new-feature +% git push origin :$username/short-descr-of-new-feature +% git branch -d$username/short-descr-of-new-feature
% git-buildpackage --git-debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" -tc
+
+
+
+
+
+
+% git-dch --debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" \
+ --since="$(dpkg-parsechangelog | awk '/^Version:/ {print $2}')" -S --id-length=7 --meta
+
+
+% git-buildpackage --git-debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" -tc [-us -uc]
+
+% git format-patch -s -p origin/master+
% git send-email --to=initramfs-tools@packages.qa.debian.org $PATCHFILE[S]+
-% git-dch --debian-branch debian --release --sinceor more dynamically: @@ -238,17 +274,21 @@ or more dynamically: % git-dch --meta --release --since v$(dpkg-parsechangelog | awk '/^Version:/ {print $2}') --debian-branch="$(git branch | awk -F\*\ '/^* / { print $2}' )" [--id-length=7] [--full] +NOTE: we do not use history based sorting for the changelog entries but +sort them by author (doing that manually when reviewing the changelog, see #586165). +HASH +% git-dch --debian-branch debian --release --sinceHASH
-% git commit -a -s -m "Releasing debian versionversion ." +% git commit -a -s -m "Releasing version$version."
-% git tag -s v"version " -m "releaseversion" +% git tag -s v"$version" -m "release$version"
--- Michael Prokop <mika@debian.org> +-- Michael Prokop <mika@debian.org>