This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more information.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Enrico Weigelt wrote: > * Marc Kleine-Budde <mkl@pengutronix.de> wrote: > >> depends what $PWD you need later, you can use these instead of "cd" >> export GIT_WORK_TREE="${package_srcdir}" >> export GIT_DIR=${GIT_WORK_TREE}/.git" > > Right, that's better :) > > I'm also doing it that way in my Briegel Buildsystem [1]. > >>> git init ${package_srcdir} && \ >>> echo "${master_repository}/objects" > ${package_srcdir}/objects/info/alternates && \ >>> git fetch "${master_repository}" +${package_ref}:_tmp && \ >>> git checkout _tmp >> git has FETCH_HEAD for this: >> >> git fetch "${master_repository}" "${package_ref}" >> git checkout FETCH_HEAD > > hmm, FETCH_HEAD always points to the lastest fetched head ? yes. You can also combine several fetches into the FETCH_HEAD in order to merge them later on (the "-a" option.....man git-fetch) cheers, Marc - -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkxq2TMACgkQjTAFq1RaXHNF5QCeKTPBH5onGzPwngcZcjolpkcy +g8AnjWpL7szdXq0/8hS1dhbSgSfoZRO =P6y3 -----END PGP SIGNATURE----- -- For unsubscribe information see http://sourceware.org/lists.html#faq
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |