How to show git log history for a sub directory of a git repo?

Lets say that I have a git repo that looks like this.

   ... big tree here
   ... big tree here

Is there a way to ask git log to show only the log messages for a specific directory. For example I want to see what commits touched files in foo/A only?



  git log -- A B

You need the '--' to separate <path>.. from the <since>..<until> refspecs.

$ git log --oneline -- src/nvfs
d6f6b3b Changes for Mac OS X
803fcc3 Initial Commit

$ git log --oneline 803fcc3 -- src/nvfs
803fcc3 Initial Commit

$ git log --oneline
d6f6b3b Changes for Mac OS X
96cbb79 gitignore
803fcc3 Initial Commit

Need Your Help

Does Junit shut down all the threads?

java multithreading junit

I have a Junit class with 6 tests in them. When the first test runs, it calls one of the methods in my other class which starts a new Thread(). Let's call it MyThread.

problems with “method” in jquery/javascript module structure

javascript jquery ajax

I am having a problem using the "module" pattern in javascript. At the line where i am trying to call a "method" or "private function" of my module, i am getting an syntax error.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.