ã¯ããã« Gitã®ã¤ã³ããã¯ã¹ã®ä¸èº«ãGitã®ãã©ã³ãã®å®è£ ã«ç¶ããGitã®ä¸èº«ãè¦ã¦ã¿ããã·ãªã¼ãºã§ããGitã管çãããªãã¸ã§ã¯ãã®ç¨®é¡ãä¸èº«ã«ã¤ãã¦è¦ã¦ã¿ã¾ããåºæ¬çã«ã¯Pro Gitã®10. Gitã®å å´ãã¾ã¨ããªããããã®ã§ãã ãªãã¸ã§ã¯ãã®ç¨®é¡ Gitã¯ãå é¨ã§ãã¡ã¤ã«ãã³ããããããªãã¸ã§ã¯ããã¨ãã¦.git/objects以ä¸ã«ä¿åãã¦ãã¾ãããªãã¸ã§ã¯ãã«ã¯ä»¥ä¸ã®4種é¡ãããã¾ãã blobãªãã¸ã§ã¯ãï¼ ãã¡ã¤ã«ãå§ç¸®ãããã®ããã¡ã¤ã«ã·ã¹ãã ã®ããã¡ã¤ã«ãã«å¯¾å¿ treeãªãã¸ã§ã¯ãï¼ Blobãªãã¸ã§ã¯ããå¥ã®Treeãªãã¸ã§ã¯ãã管çããããã¡ã¤ã«ã·ã¹ãã ã®ããã£ã¬ã¯ããªãã«å¯¾å¿ ã³ããããªãã¸ã§ã¯ãï¼ Treeãªãã¸ã§ã¯ããå ãã ãã®ãã³ãããã®ã¹ãããã·ã§ããã«å¯¾å¿ããTreeãªãã¸ã§ã¯ãã«ã親ã³ããããã³ãããã¡ãã»ã¼ã¸ãªã©ãä»å ãã ã¿ã°ãªãã¸ã§ã¯ãï¼
git init ãããã¨ã .git ã¨è¨ããã£ã¬ã¯ããªãä½ããã¾ãã Gitã«å¿ è¦ãªãã¡ã¤ã«ã¯å ¨ã¦ãã®ãã£ã¬ã¯ããªã«å«ã¾ãã¦ããã®ã§ãããæ®æ®µã¯ãã¾ãæèããªã人ã®æ¹ãå¤ãã¨æãã¾ãã ä»å㯠.git ãã£ã¬ã¯ããªã®ä¸èº«ãå°ãæ¢æ¤ãã¦ã¿ã¾ãããã .gitãã£ã¬ã¯ããªã®æ§æ ã¾ã㯠git init ã㦠.git ãã£ã¬ã¯ããªãä½æãã¦ã¿ã¾ãã .git ã®ä¸èº«ã¯ãã®ããã«ãªã£ã¦ãã¾ãã . âââ HEAD âââ branches âââ config âââ description âââ hooks â âââ applypatch-msg.sample â âââ commit-msg.sample â âââ fsmonitor-watchman.sample â âââ post-update.sample â âââ pre-applypatch.sample â
Git ã®ãªãã¸ã§ã¯ã æåã«å°ãã ãGitã®ãã¼ã¿(ãªãã¸ã§ã¯ã)ã®ä¿åæ¹æ³ã«ã¤ãã¦è§¦ãã¾ãã ãªãã¸ã§ã¯ã㯠.git/objects/ ã«ä¿åããã¾ãã ãã®ä¸ã«ãªãã¸ããªã®ãã¡ã¤ã«ãå¹ççã«ä¿åãã¾ãã ãã¼ã¸ã§ã³ãã¨ã«åããã¡ã¤ã«ãéè¤ãã¦ä¿åãããã¨ã¯ããã¾ããã ãã¡ã¤ã«ã ãã§ã¯ããã¾ãããï¼ç¨®é¡ã®ãªãã¸ã§ã¯ããä¿åãã¾ãã blob: Binary Large OBjecctã®ç¥ã§ãã¤ã¾ãã¯ãã¡ã¤ã«ã§ãããããããã¡ã¤ã«åã¯å«ã¿ã¾ããã tree: ï¼é層åã®ãã£ã¬ã¯ããªã®å ¨ãã¡ã¤ã«åã¨ãã¡ã¤ã«å 容ã®ããã·ã¥ã¨æ¨©éã§ãã commit: git commit ã§ä½ããã¾ããã³ãããå 容ã¨ãä½æè ãä½ææ¥æãªã©ãå«ã¾ãã¾ããã³ãããããã·ã¥ãã³ãããSHAã¨å¼ã°ãããã®ã§ãã tag: git tag ã§ä½ããã¾ããæ¬è³ªçã«ã¯ commit ã¨ãã¾ãå¤ããã¾ããã ãªããéè¤
ãããªãã¯ãã¡ã¤ã³ç cflow ã«ã¯ GNU cflow ã® -T, --tree * Draw ASCII art treeã¨ãããªãã·ã§ã³ããªãã®ã§ãã¤ã³ãã³ãã§è¡¨ãããå¼ã³åºãæ§é ï¼ãªããµã¤ãã«ã¼ã«ï¼ï¼ãããªã¼å½¢å¼ã«å¤æããã³ãã³ããæ¸ãã¦ã¿ãã #!/usr/bin/python import sys def getlevel(s): return len(s) - len(s.lstrip()) def parselist(lines): if len(lines) == 0: return [[], 0] tree = [] i = 0 currentlevel = getlevel(lines[0]) while i < len(lines): level = getlevel(lines[i]) if level > currentlevel: # Indent incr
ãããªãã¯ãã¡ã¤ã³ç cflow ã«ã¯ GNU cflow ã® -T, --tree * Draw ASCII art treeã¨ãããªãã·ã§ã³ããªãã®ã§ãã¤ã³ãã³ãã§è¡¨ãããå¼ã³åºãæ§é ï¼ãªããµã¤ãã«ã¼ã«ï¼ï¼ãããªã¼å½¢å¼ã«å¤æããã³ãã³ããæ¸ãã¦ã¿ãã #!/usr/bin/python import sys def getlevel(s): return len(s) - len(s.lstrip()) def parselist(lines): if len(lines) == 0: return [[], 0] tree = [] i = 0 currentlevel = getlevel(lines[0]) while i < len(lines): level = getlevel(lines[i]) if level > currentlevel: # Indent incr
RDBMS ã§ããªã¼ã表ããããªãã¼ã¿ã AA ã§ããªã¼è¡¨ç¤ºããã¹ã¯ãªãããæ¸ãã¦ã¿ãã 1 11 12 11 21 22 21 23 22 41 51 52 51 80 81 80 82 81 83 82 99999#!/usr/bin/env python # -*- coding: utf-8 -*- import sys class Node: def __init__(self, value="", parentkey=""): self.value = value self.parentkey = parentkey self.children = [] self.parent = None def show(self, level): if self.value != "": print " " * level + self.value for x in self.child
Toda Takahiro toda_takahiro ï¼ h4.dion.ne.jp 2001å¹´ 7æ 22æ¥ (æ¥) 13:00:53 JST åã®è¨äº [Python-ml-jp 475] Re: python2.2 is cool 次ã®è¨äº [Python-ml-jp 468] PyShellExt v0.0 è¨äºã®ä¸¦ã³é : [ æ¥ä» ] [ ã¹ã¬ãã ] [ 件å ] [ èè ] PEP: 255 Title: ç°¡æã¸ã§ãã¬ã¼ã¿ Version: $Revision: 1.15 $ Author: nas ï¼ python.ca (Neil Schemenauer), tim.one ï¼ home.com (Tim Peters), magnus ï¼ hetland.org (Magnus Lie Hetland) Discussion-To: python-iterators
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}