Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Git勉強会@KRAY

danny
July 06, 2013

 Git勉強会@KRAY

danny

July 06, 2013
Tweet

More Decks by danny

Other Decks in Technology

Transcript

  1. Gitlabʹ͍ͭͯ • GithubΫϩʔϯ • RailsΞϓϦ • ࣾ಺ͩͱGitorious + GitHub͔ΒGitLabʹ •

    GitoriousͩͱɺͲͷϢʔβʔͰ΋શ෦ͷϦϙδτϦͷιʔε͕ΈΔ ͜ͱ͕Ͱ͖ͨ • GitHubͩͱϓϥΠϕʔτϦϙδτϦ૿͑Δ΄Ͳ͓͕͔͔ۚΔ
  2. GitͷΦϒδΣΫτͷλΠϓ enum object_type { OBJ_BAD = -1, OBJ_NONE = 0,

    OBJ_COMMIT = 1, OBJ_TREE = 2, OBJ_BLOB = 3, OBJ_TAG = 4, /* 5 for future expansion */ OBJ_OFS_DELTA = 6, OBJ_REF_DELTA = 7, OBJ_ANY, OBJ_MAX };
  3. Object struct object { unsigned parsed : 1; unsigned used

    : 1; unsigned type : TYPE_BITS; unsigned flags : FLAG_BITS; unsigned char sha1[20]; };
  4. commit struct commit { struct object object; void *util; unsigned

    int index; unsigned long date; struct commit_list *parents; struct tree *tree; char *buffer; }; struct commit_list { struct commit *item; struct commit_list *next; };