News | About | Get Frugalware | Packages | Documentation | Discussion Forums | Bug Tracker | Wiki | Community | Development

Making a git patch

From FrugalWiki

Jump to: navigation, search


Making a git patch

Preparing

See the page about how Cloning the git repo

By default, vim is use by Git. If you want another one, like nano, you have to do this :

User terminal 48px.png
$ nano /home/<user>/.gitconfig

and add

 [core]
 editor = nano


Creating patch

1.Browse in your git repo local copy (/home/<user>/git/current/source/folder group/ indicated in your FrugalBuild)
2.Make a new directory with the name of your package
3.Put your FrugalBuild in this directory
4.Open a terminal and type :

User terminal 48px.png
$ fblint -v

To check possible errors.

User terminal 48px.png
$ git add FrugalBuild

Add all other files you need.

User terminal 48px.png
$ repoman rec

Check package name and add under it:

 * new package

Gitpatch-capture.png

User terminal 48px.png
$ git log

To get the hash under * new package:

User terminal 48px.png
$ git format-patch <hash>

Everything under the hash (including the hash line) will be ignored in creating the patch.

Tip: you can also use git format-patch HEAD~1

You'll have a file in this form:

 0001-PackageName-PackageVersion-Arch.patch

and this is the file to send to Mailing-List -devel to suggest your contribution :-)

Personal tools
Namespaces
Variants
Actions