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

Re: Git log of all (modifying) commands run on a repo?

From
Jakub Narebski <jnareb@gmail.com>
Date
Feb 7, 2007, 22:29 UTC
Message-ID
<eqdjt3$jo5$1@sea.gmane.org>
In-Reply-To
<17866.20355.744025.133326@lisa.zopyra.com>
[Cc: git@vger.kernel.org]
Bill Lear wrote:
> I thought that it would be very useful to have a history of git
> commands that have been run against a repo, in order to hopefully
> debug this sort of thing --- perhaps only those that modify the repo.
> 
[...]
> Would this sort of thing be easy to do?  I presume git does not
> currently have support for this, but thought I would ask.

If all commands were run via git wrapper (and all scripts would use git-command version, perhaps with exception of gitweb), it would be fairly easy to do (although this should probably be repository config variable).

Is history of shell commands too short? Reflogs doesn't help (concatenate all reflogs, perhaps preceding them with file name, and sort by date) either?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Bill LearNext: Bill Lear
Message 2 of 25 in “Git log of all (modifying) commands run on a repo?”
  1. Bill LearFeb 7, 2007
  2. Jakub NarebskiFeb 7, 2007
  3. Bill LearFeb 7, 2007
  4. Jakub NarebskiFeb 7, 2007
  5. Linus TorvaldsFeb 7, 2007
  6. Junio C HamanoFeb 7, 2007
  7. Shawn O. PearceFeb 7, 2007
  8. Linus TorvaldsFeb 7, 2007
  9. Junio C HamanoFeb 7, 2007
  10. Linus TorvaldsFeb 7, 2007
  11. Jakub NarebskiFeb 7, 2007
  12. Johannes SchindelinFeb 7, 2007
  13. Shawn O. PearceFeb 8, 2007
  14. Junio C HamanoFeb 8, 2007
  15. Johannes SchindelinFeb 8, 2007
  16. Junio C HamanoFeb 8, 2007
  17. Johannes SchindelinFeb 8, 2007
  18. Linus TorvaldsFeb 8, 2007
  19. Johannes SchindelinFeb 8, 2007
  20. Shawn O. PearceFeb 7, 2007
  21. Bill LearFeb 7, 2007
  22. Linus TorvaldsFeb 7, 2007
  23. Bill LearFeb 7, 2007
  24. Linus TorvaldsFeb 7, 2007
  25. Johannes SixtFeb 8, 2007

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.