MacOSX: how to rebuild after source code change

Jeff Earickson jaearick at colby.edu
Sat Mar 8 21:19:19 EST 2014


John,

I'm struggling now with git (I'm a newbie to git, but we are moving to it
at work).

$ git status
On branch master

Initial commit

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    .gnucash/
    NOTES
    gnucash-git/
    gnucash-stable/
    gnucash/
    tmp-jhbuild-revision

nothing added to commit but untracked files present (use "git add" to track)

So, I want to make a branch like on the wiki:

$ git checkout master
error: pathspec 'master' did not match any file(s) known to git.
$ git branch working-master
fatal: Not a valid object name: 'master'.

I installed git version 1.9.0 in /usr/local and am using that instead of
Mac's 1.8.3.4, but this doesn't seem to make a difference.
After installing git version 1.9, all I did was "git init", set up "git
config" info with my name and email, then "git clone..." for gnucash.
It starting pulling code, no real problems after that, until I try to make
a branch.  Then no love.

-----------------------------------
Jeff A. Earickson, Ph.D
Senior Server System Administrator
Colby College,
4214 Mayflower Hill,
Waterville ME, 04901-8842
207-859-4214 (fax 207-859-4186)
Eastern Time Zone, USA
-----------------------------------


On Sat, Mar 8, 2014 at 9:05 PM, John Ralls <jralls at ceridwen.us> wrote:

>
> On Mar 8, 2014, at 5:11 PM, Jeff Earickson <jaearick at colby.edu> wrote:
>
> > John,
> >
> > I have (with a little struggle) built the Mac code from git source, made
> my trivial mod to line 622 of ~/gtk/source/gnucash-2.6.2/
> > src/app-utils/gnc-ui-util.c, rebuilt, and seen my change in the rebuilt
> code (without a core dump).  Hooray!
> >
> > Should stupid how-do-I-build questions like this go to gnucash-devel or
> gnucash-users lists?  What's my limit? :)
>
> Congratulations!
>
> Devel is better, I think. The only reason I can see to build it yourself
> is to develop, so after you build you're likely to have code questions
> anyway, so the sooner you get introduced here, the better.
>
> Regards,
> John Ralls
>
>


More information about the gnucash-devel mailing list