12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix C ■ Tracking History Using Version Control Systems 1345HEAD—This is a special name <strong>for</strong> the most recent version <strong>of</strong> a branch.For example, HEAD <strong>of</strong> master is the most recent commit in the masterbranch.Obtaining GitInstalling Git is a bit more complex than Subversion <strong>and</strong> varies wildly dependingon operating system. Two main packages can be used to install Git <strong>for</strong> MacOS X:http://metastatic.org/source/git-osx.htmlhttp://code.google.com/p/git-osx-installer/Both pages describe the installation procedure <strong>and</strong> should be straight<strong>for</strong>ward.For Micros<strong>of</strong>t Windows, there is a package called msysgit that providesan installation package at http://code.google.com/p/msysgit.You can find documentation <strong>for</strong> Git in the Git User’s Manual at www.kernel.org/pub/s<strong>of</strong>tware/scm/git/docs/user-manual.html.Obtaining Mercurial (hg)You can find prebuilt packages <strong>for</strong> installing Mercurial at www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages. A number <strong>of</strong> methods <strong>of</strong> installationexist <strong>for</strong> both Micros<strong>of</strong>t Windows <strong>and</strong> Mac OS X.You can find documentation <strong>for</strong> Mercurial online at http://hgbook.red-bean.com.Typical UsageCurse<strong>for</strong>ge (http://curse<strong>for</strong>ge.com) is an addon development communitycreated by http://curse.com. It is the most likely place you will see addondevelopment using Mercurial <strong>and</strong> Git. Once you have created a new project<strong>and</strong> it has been approved, you can create a new repository. Regardless <strong>of</strong>whether you choose Git or Mercurial, you will be given two different URLs.The first is the public address, which can be used by non-developers to followyour project. The second is the development URL, which is used to actuallycommit code to your project.GitTo develop your addon with Git, you must first create a local repository thatcontains your code. You can accomplish this by creating a new empty directory<strong>and</strong> issuing the git init comm<strong>and</strong>.> cd MyAddon> git initInitialized empty Git repository in /private/tmp/MyAddon/.git/

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!