User Tools

Site Tools


userdoc:git-url-shorterners

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
userdoc:git-url-shorterners [2015-09-28 14:29]
mricon created
userdoc:git-url-shorterners [2020-05-08 14:03] (current)
mricon
Line 1: Line 1:
 +~~REDIRECT>​https://​korg.docs.kernel.org/​git-url-shorteners.html~~
 +
 ====== Convenient URL shorteners for git.kernel.org ====== ====== Convenient URL shorteners for git.kernel.org ======
 There is a simple framework of convenient URL shortcuts for git.kernel.org,​ for repositories hosted in pub/​scm/​linux/​kernel/​git (where most Linux trees are). There is a simple framework of convenient URL shortcuts for git.kernel.org,​ for repositories hosted in pub/​scm/​linux/​kernel/​git (where most Linux trees are).
Line 4: Line 6:
 ===== /c/ for commits ===== ===== /c/ for commits =====
  
-    /​[name]/​c/​[sha1] ​       -> /cgit/​linux/​kernel/​git/​[name]/​linux.git/​commit/?​id=[sha1] +    /​[name]/​c/​[sha1] ​       -> /pub/scm/​linux/​kernel/​git/​[name]/​linux.git/​commit/?​id=[sha1] 
-    /​[name]/​[repo]/​c/​[sha1] -> /cgit/​linux/​kernel/​git/​[name]/​[repo].git/​commit/?​id=[sha1]+    /​[name]/​[repo]/​c/​[sha1] -> /pub/scm/​linux/​kernel/​git/​[name]/​[repo].git/​commit/?​id=[sha1]
  
 If ''​[repo]''​ is omitted, "​linux.git"​ is assumed. If ''​[repo]''​ is omitted, "​linux.git"​ is assumed.
Line 12: Line 14:
  
     https://​git.kernel.org/​torvalds/​c/​4f27395     https://​git.kernel.org/​torvalds/​c/​4f27395
-    https://​git.kernel.org/​stable/linux-stable/c/a585d2b+    https://​git.kernel.org/​tip/tip/c/2923b27
  
 The commit can be a full sha1 or at least 7 chars long; it can also be a tag name or any other tree object, e.g.: The commit can be a full sha1 or at least 7 chars long; it can also be a tag name or any other tree object, e.g.:
Line 20: Line 22:
 ===== /p/ for patches ===== ===== /p/ for patches =====
  
-    /​[name]/​p/​[sha1] ​       -> /cgit/​linux/​kernel/​git/​[name]/​linux.git/​patch/?​id=[sha1] +    /​[name]/​p/​[sha1] ​       -> /pub/scm/​linux/​kernel/​git/​[name]/​linux.git/​patch/?​id=[sha1] 
-    /​[name]/​[repo]/​p/​[sha1] -> /cgit/​linux/​kernel/​git/​[name]/​[repo].git/​patch/?​id=[sha1]+    /​[name]/​[repo]/​p/​[sha1] -> /pub/scm/​linux/​kernel/​git/​[name]/​[repo].git/​patch/?​id=[sha1]
  
 If ''​[repo]''​ is omitted, "​linux.git"​ is assumed. If ''​[repo]''​ is omitted, "​linux.git"​ is assumed.
Line 28: Line 30:
  
     https://​git.kernel.org/​torvalds/​p/​4f27395     https://​git.kernel.org/​torvalds/​p/​4f27395
-    https://​git.kernel.org/​stable/linux-stable/p/a585d2b+    https://​git.kernel.org/​tip/tip/p/2923b27
  
 ===== /h/ for Heads ===== ===== /h/ for Heads =====
  
-    /​[name]/​h/​[head] ​       -> /cgit/​linux/​kernel/​git/​[name]/​linux.git/?​h=[head] +    /​[name]/​h/​[head] ​       -> /pub/scm/​linux/​kernel/​git/​[name]/​linux.git/log/?​h=[head] 
-    /​[name]/​[repo]/​h/​[head] -> /cgit/​linux/​kernel/​git/​[name]/​[repo].git/?​h=[head]+    /​[name]/​[repo]/​h/​[head] -> /pub/scm/​linux/​kernel/​git/​[name]/​[repo].git/log/?h=[head]
  
 If ''​[repo]''​ is omitted, "​linux.git"​ is assumed. If ''​[repo]''​ is omitted, "​linux.git"​ is assumed.
Line 39: Line 41:
 Examples: Examples:
     https://​git.kernel.org/​s390/​h/​for-linus     https://​git.kernel.org/​s390/​h/​for-linus
-    ​httls://​git.kernel.org/​next/​linux-next/​h/​stable+    ​https://​git.kernel.org/​next/​linux-next/​h/​stable 
 + 
 +===== /d/ and /ds/ for diffstat ===== 
 + 
 +    /​[name]/​d/​[id1]/​[id2] ​       -> /​pub/​scm/​linux/​kernel/​git/​[name]/​linux.git/​diff/​id=[id1]&​id2=[id2] 
 +    /​[name]/​[repo]/​d/​[id1]/​[id2] -> /​pub/​scm/​linux/​kernel/​git/​[name]/​[repo].git/​diff/​id=[id1]&​id2=[id2] 
 + 
 +Both ''​[id1]''​ and ''​[id2]''​ would normally be tags, but can be a full sha1 or at least 7 chars long. Use ''/​ds/''​ for "stat only" view (e.g. when full diff is way too huge to be reasonably useful for anything). 
 + 
 +If ''​[repo]''​ is omitted, "​linux.git"​ is assumed. 
 + 
 +Examples: 
 +    https://​git.kernel.org/​torvalds/​ds/​v4.5-rc1/​v4.4 
 +    https://​git.kernel.org/​tip/​tip/​d/​v4.18-rc2/​v4.18-rc1
  
userdoc/git-url-shorterners.1443450569.txt.gz · Last modified: 2015-09-28 14:29 by mricon