Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git pull is not returning absolute path in verbose

Tags:

git

git-svn

I am trying to pull from GIT using verbose, it shows all the updated files but it is not showing the absolute path for those files.Is there a way to get full path for the updated files.

i tried command:git pull --verbose

output: Updating b88b206..4a5f5dd Fast-forward .../main/com/manh/cbo/syscode/finitevalue/TESBSysCodeType.java | 3 --- 1 file changed, 3 deletions(-)

i want something like:

Updating b88b206..4a5f5dd Fast-forward C:/GIT/WM2013/te/manifest/JavaSource/main/com/manh/cbo/syscode/finitevalue/TESBSysCodeType.java

like image 204
vasu Avatar asked Nov 16 '25 22:11

vasu


1 Answers

git shortens the paths to fit in 80 chars.

git pull implies git merge which has --stat by default. Unfortunately, this --stat has no width option unlike diff, log or show.

So, to see the changed files, save the current SHA1 into a shell variable:

oldsha=`git rev-parse HEAD`

, do git pull and then:

git diff --stat=1000,1000 $oldsha

or

git diff --name-only $oldsha
like image 159
basin Avatar answered Nov 19 '25 12:11

basin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!