git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Add 'raw' blob_plain link in history overview

From
Job Snijders <job@instituut.net>
Date
Aug 21, 2017, 14:13 UTC
Message-ID
<20170821141306.wnlfn5a4hmgnj3yn@hanna.meerval.net>
In-Reply-To
<CAOxFTcxaxRjdsd0OSQX9E9ncEnO4XFLoa-0puXm2AByv6dZUow@mail.gmail.com>
Add 'raw' blob_plain link in history overview
Reviewed-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Job Snijders <job@instituut.net>
---
 gitweb/gitweb.perl | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 9208f42ed..959f04b49 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -5967,6 +5967,9 @@ sub git_history_body {
 		      $cgi->a({-href => href(action=>"commitdiff", hash=>$commit)}, "commitdiff");
 
 		if ($ftype eq 'blob') {
+			print " | " .
+			      $cgi->a({-href => href(action=>"blob_plain", hash_base=>$commit, file_name=>$file_name)}, "raw");
+
 			my $blob_current = $file_hash;
 			my $blob_parent  = git_get_hash_by_path($commit, $file_name);
 			if (defined $blob_current && defined $blob_parent &&
Previous: Giuseppe BilottaNext: Junio C Hamano
Message 6 of 12 in “Add 'raw' blob_plain link in history overview”
  1. Add 'raw' blob_plain link in history overviewJob Snijders, Aug 2, 2017
  2. Job SnijdersAug 20, 2017
  3. Giuseppe BilottaAug 21, 2017
  4. Job SnijdersAug 21, 2017
  5. Giuseppe BilottaAug 21, 2017
  6. Job SnijdersAug 21, 2017
  7. Junio C HamanoAug 22, 2017
  8. Job SnijdersAug 22, 2017
  9. Giuseppe BilottaAug 22, 2017
  10. Job SnijdersAug 22, 2017
  11. Junio C HamanoAug 22, 2017
  12. Junio C HamanoAug 22, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.