home | list info | list archive | date index | thread index

[OCLUG-Tech] how to track the latest version of a file via gitweb?

  • Subject: [OCLUG-Tech] how to track the latest version of a file via gitweb?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Sat, 12 Dec 2015 10:37:28 -0500 (EST)
  undoubtedly trivial question but here goes, anyway; i want to write
a wiki page that will contain links to various files and directories
of a git repo available via gitweb(?):

 http://git.denx.de/?p=u-boot.git;a=tree

if i want a link that will always point to, say, the most recent
version of the top-level file "Makefile", is this the correct URL?

 http://git.denx.de/?p=u-boot.git;a=blob;f=Makefile;hb=HEAD

i note there is no reference to the "master" branch so i'm assuming
that's implied.

  and if i want a similar URL to a directory, i'm also guessing it's
something like:

 http://git.denx.de/?p=u-boot.git;a=tree;f=board/ti/am335x;hb=HEAD

am i assuming correctly?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================