Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=81ed76d0dee77d2f443046fd403b93059a695d6c
commit 81ed76d0dee77d2f443046fd403b93059a695d6c Author: crazy <cr...@frugalware.org> Date: Thu Feb 18 11:04:08 2010 +0100 repoman: added ci ( commit info function ) * added for now 'ci' command to replace : * repoman rec && kill it && paste && use git .. "paste here" * when moving / removing packages .. * cd some_group/package , repoman ci. This will generate: * ==> Your git commit command is: * ==> git commit -a -e -m package-pkgver-pkgrel-arch diff --git a/repoman b/repoman index f382929..23c883d 100755 --- a/repoman +++ b/repoman @@ -519,6 +519,19 @@ $@" | darcs rec -a --pipe . fi } +__pkg_commit_info() +{ + local commitmsg + commitmsg="$pkgname-$pkgver-$pkgrel-$arch" + msg "Your git commit command is:" + msg "git commit -a -e -m $commitmsg" +} + +commit_info() +{ + __pkg_commit_info +} + record() { echo -n "Checking FrugalBuild... " @@ -1016,6 +1029,10 @@ if [ "$1" != "" ]; then shift 1 upgrade $* ;; + ci) + shift 1 + commit_info $* + ;; *) echo "Unknown command: $1" usage diff --git a/repoman.txt b/repoman.txt index 479022a..1e74b91 100644 --- a/repoman.txt +++ b/repoman.txt @@ -218,14 +218,14 @@ In this example, we'll remove the synaptics package: ---- $ cd ~/git/current/source/x11-extra/synaptics -$ repoman rec <1> +$ repoman ci <1> $ cd .. $ rm -rf synaptics -$ git commit -a -e -m "<paste here the patchname>" +$ use commit command generated by repoman ci $ dg push -a <2> $ repoman clean x11-extra/synaptics <3> ---- -<1> This will generate a nice patch name for you, copy it to the clipboard, and hit Ctrl-C +<1> This will generate a nice patch name and give you the git commit command. <2> This removes the buildscript and other tracked files <3> This removes everything else @@ -240,12 +240,12 @@ $ cd ~/git/current/source $ git mv network/netkit-rsh network-extra $ cd network-extra/netkit-rsh $ vi FrugalBuild <1> -$ repoman rec <2> -$ git commit -a -e -m "<paste here the patchname>" +$ repoman ci <2> +$ use commit command generated by repoman ci $ dg push -a <3> ---- <1> Edit the FrugalBuild: increment the pkgrel value by one -<2> This will generate a nice patch name for you, copy it to the clipboard, and hit Ctrl-C +<2> This will generate a nice patch name and give you the git commit command. <3> This will move the tracked files and then the git hook will move the untracked files as well NOTE: Incrementing the pkgrel value is not a must, for huge packages it _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git