World: r3wp
[!REBOL3 Source Control] How to manage build process
older newer | first last |
Andreas 29-Oct-2010 [369] | Github automatically builds tarballs and zipballs for you. |
Carl 29-Oct-2010 [370] | Great! Makes it easy. |
Andreas 29-Oct-2010 [371x3] | :) |
For example: http://github.com/rebolsource/r3-hostkit/tarball/master | |
Instead of the final /master you can specify any tagname, branchname, or even revision name. | |
Carl 29-Oct-2010 [374x2] | Very useful. |
Ok, so I've read through gittutorial(7) ... and tried out various commands here... seems reasonable. | |
Andreas 29-Oct-2010 [376] | Encouraging! |
Carl 29-Oct-2010 [377] | What would be nice is to boil that tutorial down to just the 1, 2, 3 steps that most R3 developers would need to know. |
Andreas 29-Oct-2010 [378] | Agreed. |
BrianH 29-Oct-2010 [379] | Be sure to include the right settings to choose for the Windows installer. |
Carl 29-Oct-2010 [380] | So, for github, would each developer have their own repository on that site? |
Andreas 29-Oct-2010 [381x3] | Would be a possibility, yes. |
Attaching patches to curecode issues is another. | |
Brian, any other setting besides the CRLF that you remember? | |
Carl 29-Oct-2010 [384] | Also, how is that set on Linux? Not sure. |
Andreas 29-Oct-2010 [385] | Linux does the sane thing per default :) |
Carl 29-Oct-2010 [386] | So... what's the general flow. For example: 1. developer clones host-kit repo 2. makes changes as needed 3. commits to local repo Then, developer must somehow put them somewhere that we can pull from, correct? |
Andreas 29-Oct-2010 [387] | Yes. |
Carl 29-Oct-2010 [388] | So, there's no "push" is there? |
Andreas 29-Oct-2010 [389] | 4a1. developer exports commits as patches 4a2. developer attaches the patches to a curecode issue |
BrianH 29-Oct-2010 [390] | Do the CRLF-local, LF-repo on Windows; LF local and repo on Linux. Then line endings will be normalized. Only applies to text files of course. |
Andreas 29-Oct-2010 [391x2] | 4b1. developer forks the r3-hostkit repo on github to his github user account 4b1. developer pushes his changes to his github fork |
4b3. developer notifies upstream via r3 chat, altme, curecode, or even github pull requests. | |
Carl 29-Oct-2010 [393x2] | So, there's a git patch command to emit patch file? |
Or does user do that manually? | |
Andreas 29-Oct-2010 [395x2] | git diff emits patches |
git format-patch emits patches that are ready to be emailed | |
Carl 29-Oct-2010 [397] | is the "fork" you mention for 4b1 the same as a clone? |
Andreas 29-Oct-2010 [398] | The specific "forking" I was referring to is a Github feature. |
Carl 29-Oct-2010 [399] | ok |
Andreas 29-Oct-2010 [400x4] | We can quickly try it out, it is really simple. |
But if you have a look at http://github.com/earl/r3-hostkit | |
You will see that at the top there is a link "forked from rebolsource/r3-hostkit". | |
When you look at http://github.com/rebolsource/r3-hostkit/network/members | |
Carl 29-Oct-2010 [404] | Whoops, I'm being called to dinner. Will be back in a while, and will check that out. |
Andreas 29-Oct-2010 [405x2] | You'll see that Github lists all "forks" there. |
Enjoy! | |
Carl 29-Oct-2010 [407] | bye for now |
Andreas 29-Oct-2010 [408] | Brian, the only trouble with letting git do the line ending normalisation is that it is a bit troublesome. It's generally easier to just have git not touch the line endings at all and use a properly set-up editor instead. |
BrianH 29-Oct-2010 [409] | Oh, I was used to Hg just doing that without the problems. Can we reject submissions that don't have the right line endings? |
Andreas 29-Oct-2010 [410] | Yes. |
BrianH 29-Oct-2010 [411] | And I assume every major C/C++ compiler on Windows can handle LF-endings with no complaint. |
Andreas 29-Oct-2010 [412] | We only have to support one that does. |
BrianH 29-Oct-2010 [413] | Is there a pending proposal to fix git's line ending munging so it works properly, like Hg's? |
Andreas 29-Oct-2010 [414] | (-> "Source control") |
Carl 29-Oct-2010 [415] | Useful git guide: www.sourcemage.org/Git_Guide Shows examples of many commands. In FAQ format. |
Andreas 29-Oct-2010 [416x3] | A few examples there are a bit out of date, though. |
For example, git-update-index is no longer needed to resolve merge conflics. You'd use git-add instead. | |
And in the "advanced usage" examples, a few commands have been simplified. | |
older newer | first last |