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

Both sides previous revision Previous revision
Next revision
Previous revision
userdoc:git-url-shorterners [2016-01-25 16:12]
mricon
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/​log/?​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/​log/?​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 43: Line 45:
 ===== /d/ and /ds/ for diffstat ===== ===== /d/ and /ds/ for diffstat =====
  
-    /​[name]/​d/​[id1]/​[id2] ​       -> /cgit/​linux/​kernel/​git/​[name]/​linux.git/​diff/​id=[id1]&​id2=[id2] +    /​[name]/​d/​[id1]/​[id2] ​       -> /pub/scm/​linux/​kernel/​git/​[name]/​linux.git/​diff/​id=[id1]&​id2=[id2] 
-    /​[name]/​[repo]/​d/​[id1]/​[id2] -> /cgit/​linux/​kernel/​git/​[name]/​[repo].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). 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).
Line 52: Line 54:
 Examples: Examples:
     https://​git.kernel.org/​torvalds/​ds/​v4.5-rc1/​v4.4     https://​git.kernel.org/​torvalds/​ds/​v4.5-rc1/​v4.4
-    https://​git.kernel.org/​stable/linux-stable/d/v2.6.32.69/v2.6.32.68+    https://​git.kernel.org/​tip/tip/d/v4.18-rc2/v4.18-rc1
  
userdoc/git-url-shorterners.1453738328.txt.gz · Last modified: 2016-01-25 16:12 by mricon