Difference between revisions of "Pacman Development"

From ArchWiki
Jump to: navigation, search
(wikify some external links, use https for archlinux.org)
m (Git Tips: fix indentation)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
[[Category:Pacman development]]
 
[[Category:Pacman development]]
 +
[[pl:Pacman Development]]
 
Interested in Pacman Development? This page should help you get started.
 
Interested in Pacman Development? This page should help you get started.
  
Line 28: Line 29:
 
Clone: https://projects.archlinux.org/git/users/allan/pacman.git
 
Clone: https://projects.archlinux.org/git/users/allan/pacman.git
  
===Dan McGee===
+
===Andrew Gregory===
Web: http://code.toofishes.net/cgit/dan/pacman.git/<br/>
+
Web: https://github.com/andrewgregory/pacman/<br/>
Clone: git://code.toofishes.net/dan/pacman.git<br/>
+
Clone: https://github.com/andrewgregory/pacman.git
Clone: http://code.toofishes.net/git/dan/pacman.git
 
 
 
===Dave Reisner===
 
Web: https://github.com/falconindy/pacman<br/>
 
Clone: git://github.com/falconindy/pacman.git<br/>
 
Clone: https://github.com/falconindy/pacman.git
 
  
 
==Git Tips==
 
==Git Tips==
Line 43: Line 38:
  
 
Clone git repo - only needed once
 
Clone git repo - only needed once
  git clone git://projects.archlinux.org/pacman.git pacman
+
git clone https://projects.archlinux.org/pacman.git pacman
  
 
Enable useful hooks
 
Enable useful hooks
  mv .git/hooks/applypatch-msg.sample .git/hooks/applypatch-msg
+
mv .git/hooks/applypatch-msg.sample .git/hooks/applypatch-msg
  mv .git/hooks/commit-msg.sample .git/hooks/commit-msg
+
mv .git/hooks/commit-msg.sample .git/hooks/commit-msg
  mv .git/hooks/pre-commit.sample .git/hooks/pre-commit
+
mv .git/hooks/pre-commit.sample .git/hooks/pre-commit
  mv .git/hooks/pre-rebase.sample .git/hooks/pre-rebase
+
mv .git/hooks/pre-rebase.sample .git/hooks/pre-rebase
 +
or
 +
rename .sample "" .git/hooks/*.sample
  
 
Always do your work on a new local branch to save yourself headaches.
 
Always do your work on a new local branch to save yourself headaches.
  
 
Make patch to master branch
 
Make patch to master branch
  git format-patch master
+
git format-patch master
  
Amend patch (Don't use it after a push)
+
Amend patch (do not use it after a push)
  git commit -a --amend -s
+
git commit -a --amend -s
  
 
Update master branch
 
Update master branch
  git checkout master
+
git checkout master
  git pull
+
git pull
  
 
Merge changes on master with "<branch>"
 
Merge changes on master with "<branch>"
  git rebase master <branch>
+
git rebase master <branch>
  
 
Get maint branch
 
Get maint branch
  git checkout -b maint origin/maint
+
git checkout -b maint origin/maint
  
 
Add a remote repository
 
Add a remote repository
  git remote add toofishes git://code.toofishes.net/dan/pacman.git
+
git remote add toofishes git://code.toofishes.net/dan/pacman.git
  
 
Get toofishes working branch
 
Get toofishes working branch
  git branch -r
+
git branch -r
  git checkout -b toofishes-working toofishes/working
+
git checkout -b toofishes-working toofishes/working

Latest revision as of 10:31, 2 June 2017

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.

References and Links

  • IRC: #archlinux-pacman on irc.freenode.net

Developer Repositories

A handful of the "regulars" have their own repositories with work in progress, working and feature branches, etc. Several are listed here, but feel free to add more that you may know about.

Allan McRae

Web: https://projects.archlinux.org/users/allan/pacman.git/
Clone: git://projects.archlinux.org/users/allan/pacman.git
Clone: https://projects.archlinux.org/git/users/allan/pacman.git

Andrew Gregory

Web: https://github.com/andrewgregory/pacman/
Clone: https://github.com/andrewgregory/pacman.git

Git Tips

Before using these tips, it is highly recommended to read the Super Quick Git Guide.

Clone git repo - only needed once

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

Enable useful hooks

mv .git/hooks/applypatch-msg.sample .git/hooks/applypatch-msg
mv .git/hooks/commit-msg.sample .git/hooks/commit-msg
mv .git/hooks/pre-commit.sample .git/hooks/pre-commit
mv .git/hooks/pre-rebase.sample .git/hooks/pre-rebase

or

rename .sample "" .git/hooks/*.sample

Always do your work on a new local branch to save yourself headaches.

Make patch to master branch

git format-patch master

Amend patch (do not use it after a push)

git commit -a --amend -s

Update master branch

git checkout master
git pull

Merge changes on master with "<branch>"

git rebase master <branch>

Get maint branch

git checkout -b maint origin/maint

Add a remote repository

git remote add toofishes git://code.toofishes.net/dan/pacman.git

Get toofishes working branch

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