Difference between revisions of "Pacman Development"

From ArchWiki
Jump to: navigation, search
(GIT Cheat Sheet: add link to the super quick git guide)
(Add links to helpful articles on toofishes' blog)
Line 15: Line 15:
* [http://archlinux.org/pacman/submitting-patches.html Submitting Patches]
* [http://archlinux.org/pacman/submitting-patches.html Submitting Patches]
* [http://archlinux.org/pacman/translation-help.html Translation Help]
* [http://archlinux.org/pacman/translation-help.html Translation Help]
* [http://toofishes.net/blog/git-workflow-pacman/ Git workflow with pacman]
* [http://toofishes.net/blog/using-valgrind-c-programming/ Using valgrind for C programming]
* [http://toofishes.net/blog/using-gcov-code-coverage-testing/ Using gcov for code coverage testing]
* [http://toofishes.net/blog/valgrind-330-and-new-massif/ Valgrind 3.3.0 and the new massif]
==GIT Cheat Sheet==
==GIT Cheat Sheet==

Revision as of 16:03, 27 July 2008

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Pacman Development#)

Interested in Pacman Development? This page should help you get started.

Remember that if you think something belongs on this page, add it! The current pacman developers are not likely to know what people need to know and should be on this page.

External References and Links

GIT Cheat Sheet

Before using the git cheat sheet, it is highly recommended to read the Super_Quick_Git_Guide

Clone git repo - only needed once

 git clone git://projects.archlinux.org/pacman.git pacman

Enable useful hooks

 chmod +x .git/hooks/{applypatch-msg,commit-msg,pre-commit,pre-rebase}

Create branch "<branch>"

 git branch <branch>

Work with branch "<branch>"

 git checkout <branch>

Commit changes on current branch and make patch to master branch

 git commit -a -s
 git format-patch master

Amend patch (Don't use it after a push)

 git commit -a --amend -s

Add file "<file>"

 git add <file>

Remove file "<file>"

 git rm <file>

Remove branch "<branch>"

 git branch -D <branch>

Update master branch

 git checkout master
 git pull

Merge changes on master with "<branch>"

 git rebase master <branch>

Get maint branch

 git branch -r
 git checkout -b maint origin/maint

Add a remote repository

  git remote add toofishes http://code.toofishes.net/gitprojects/pacman.git

Get toofishes working branch

  git branch -r
  git checkout -b toofishes-working toofishes/working