Different history depending on where git log is called -


i'm attempting view history of directory in git repo. i'm seeing 2 different histories depending on directory call git log.

case 1 (from root of repo):

$ git log path/to/files 

returns 1 commit

case 2 (from sub directory):

$ cd path/to/files $ git log . 

returns 13 commits, last commit displayed (earliest commit) same case 1.

shouldn't 2 cases return same history?

i've tried "--" , "--follow" in case 1 no effect.

they different. git log . lists log, git log path/to/files restricts log output changes pertinent files:

[\--] <path>… 

show commits enough explain how files match specified paths came be. see history simplification below details , other simplification modes.

paths may need prefixed ‘`-- '’ separate them options or revision range, when confusion arises.

see https://git-scm.com/docs/git-log


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -