Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cleaning up VDrift source tree
10-23-2011, 05:02 PM,
#42
 
joevenzon Wrote:Only 4 tags...?

These 4 were the only ones, I found on SourceForge: http://vdrift.svn.sourceforge.net/viewvc/vdrift/tags/

joevenzon Wrote:If we do switch to git for data, the auto-updater needs to be rewritten to use it instead of the sourceforge svn. This may be easier because git has an API, whereas the sourceforge svn code is scraping the html, although having a concept of revision number is handy.

Yes, GitHub has an API that can be accessed via HTTP:
http://developer.github.com/v3/

I would suggest the updater to consider new tags, only. Usually packages are updated with new releases, so this would be the equivalent to the usual behaviour. There is a function to list the commits of a repository, so the last tag can be identified:
http://developer.github.com/v3/git/commits/

There is a function to get information about a specific tag:
http://developer.github.com/v3/git/tags/

A tag object contains a commit object and in it is a tree object, listing the sha1s of contained blobs.

These can then be cross-referenced with the hashes returned by the VDriftDataHasher I am working on. I added object hashing that is compatible to git in:

https://github.com/bigben87/VDriftDataHa...0b31e31b87

joevenzon Wrote:
BiGBeN87 Wrote:So Git/Hub is faster at downloading for end users and patch-only developers, who can use the shallow clone.

1) What's the workflow for a patch-only developer using a shallow clone

patch-only-dev:

- initally, git clone --depth=1
- checkout master
- modify files
- git add them
- git commit them
- git format-patch origin/master..master
- create a gist containing the patche(s)
- create an issue

Examples:
- https://github.com/mootools/mootools-cor...it-Patches
- https://github.com/rakudo/rakudo/wiki/st...te-a-patch

VDrift-maintainer:

- see the issue
- download the raw patch(es) from gist
- git apply/am the patch(es)
- git push origin master

joevenzon Wrote:2) Is using a fork and pull request a valid workflow for the entire data tree?

I think it is, because the strict hierarchy separates commits contained in branches from each other even the forking was done some time ago and the master was not updated. I think, splitting data into individual repos for each car/track would help keeping things clear and atomic, too.

joevenzon Wrote:3) What's the workflow for a developer working in master? They must do a full clone, correct?

- git pull
- modify
- git add
- git commit
- git push

I would think this is the recommendable workflow, for developers/maintainers and contributors as well, because branching/merging/pull-requesting is only possible with non-shallow clones and therefore needed for agile and clean development.

In cases of more complex (read: multi-commit) projects, developers should work in branches, too and merge their work into master when they are more or less done.
Reply


Messages In This Thread
Cleaning up VDrift source tree - by thelusiv - 12-24-2010, 12:25 PM
[No subject] - by joevenzon_phpbb2_import3 - 12-24-2010, 01:23 PM
[No subject] - by NaN - 04-02-2011, 02:54 PM
[No subject] - by antoniovazquez - 06-03-2011, 07:42 AM
[No subject] - by thelusiv - 06-10-2011, 03:21 AM
[No subject] - by antoniovazquez - 06-10-2011, 09:26 AM
[No subject] - by joevenzon_phpbb2_import3 - 06-10-2011, 10:30 AM
[No subject] - by antoniovazquez - 06-10-2011, 05:20 PM
[No subject] - by Timo 6 - 06-11-2011, 04:30 AM
[No subject] - by joevenzon_phpbb2_import3 - 06-13-2011, 10:01 PM
[No subject] - by NaN - 06-14-2011, 09:06 AM
[No subject] - by antoniovazquez - 06-14-2011, 09:12 AM
[No subject] - by NaN - 06-14-2011, 09:17 AM
[No subject] - by Timo 6 - 06-14-2011, 10:20 AM
[No subject] - by joevenzon_phpbb2_import3 - 06-14-2011, 10:21 AM
[No subject] - by NaN - 06-14-2011, 11:00 AM
[No subject] - by joevenzon_phpbb2_import3 - 06-16-2011, 12:05 AM
[No subject] - by NaN - 06-16-2011, 03:26 PM
[No subject] - by NaN - 06-16-2011, 03:29 PM
[No subject] - by joevenzon_phpbb2_import3 - 06-18-2011, 11:43 PM
[No subject] - by BiGBeN87 - 09-25-2011, 10:20 PM
[No subject] - by alex25 - 09-26-2011, 10:57 AM
[No subject] - by BiGBeN87 - 09-26-2011, 09:14 PM
[No subject] - by alex25 - 09-27-2011, 09:24 AM
[No subject] - by BiGBeN87 - 09-27-2011, 02:15 PM
[No subject] - by alex25 - 09-27-2011, 04:06 PM
[No subject] - by BiGBeN87 - 09-27-2011, 07:24 PM
[No subject] - by antoniovazquez - 09-28-2011, 05:07 PM
[No subject] - by BiGBeN87 - 09-29-2011, 06:25 AM
[No subject] - by antoniovazquez - 09-29-2011, 10:17 AM
[No subject] - by joevenzon_phpbb2_import3 - 10-01-2011, 04:35 PM
[No subject] - by BiGBeN87 - 10-02-2011, 12:16 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-02-2011, 02:57 PM
[No subject] - by BiGBeN87 - 10-05-2011, 05:43 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-06-2011, 10:35 AM
[No subject] - by BiGBeN87 - 10-07-2011, 01:55 PM
[No subject] - by BiGBeN87 - 10-08-2011, 08:18 PM
[No subject] - by BiGBeN87 - 10-19-2011, 11:45 AM
[No subject] - by joevenzon_phpbb2_import3 - 10-22-2011, 01:37 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-22-2011, 01:48 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-22-2011, 02:08 PM
[No subject] - by BiGBeN87 - 10-23-2011, 05:02 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)