gitHistoryVSCode icon indicating copy to clipboard operation
gitHistoryVSCode copied to clipboard

0.4.2 new issue finding files for diff

Open RevFry opened this issue 8 years ago • 23 comments

When I try to view and compare against file in my work space I get an error dialog that says, "Corresponding work space file does not exist".

I think the cause is related to the this other issue. When I try to compare against a previous version I see an error in the output that says "fatal: '../../C:/[pathtofile]/[file]' is outside repository"

Looks like it's prepending unnecessarily to an already fully qualified path.

RevFry avatar Jul 17 '18 17:07 RevFry

Please could you send a sample repo with details to replicate this issue. Thanks.

DonJayamanne avatar Jul 17 '18 18:07 DonJayamanne

I'll try and locate one to use. Everything I usually work on comes from private repositories. I'll add a comment when I have an example repository.

RevFry avatar Jul 17 '18 18:07 RevFry

I actually cloned your repo and tried it.

image

To make sure I uninstalled the extension, deleted the folder, installed it, reloaded and then attempted to compare git.ts to previous and work space.

RevFry avatar Jul 17 '18 18:07 RevFry

me too. os: win10 vscode: 1.25.1 git history: 0.4.2 @DonJayamanne same as upstairs @RevFry problem1 the ability of compare to previous or workspace has something wrong

JWleo avatar Jul 18 '18 01:07 JWleo

Oh but this means I have to use... 🥁 ...

:zap:       (?! [A-Z]+) :boom: !!!       :zap:

your (this || that || ...) code editor and/or git log gui client

:scream: nooohhhhwww...!

This extension shows timeline graphics among git chaos (👍 ), while using Visual Studio code --disable-gpu. For me at least.

marchage avatar Jul 23 '18 13:07 marchage

Same for me, can't do file diffs at all

git show 83e0d3a8852c41145d3a5a5200854dda808ffe48:../../../../../c:/Users/JStamm/Documents/GitHub/piranha.core.examples/AddBlogToMvcApplication/Startup.cs  (completed in 0.363s)

fatal: '../../../../../c:/Users/JStamm/Documents/GitHub/piranha.core.examples/AddBlogToMvcApplication/Startup.cs' is outside repository

stamminator avatar Jul 23 '18 14:07 stamminator

I have run across the same issue as well.

image

Moreover, I'd like to contribute more useful information for the issue:

  1. Duplicate the git command "git show daefed355709ab1abc070ab706400a50eceea3c0:../../../d:/workshop/github/mobile_attendance/src/modules/attendance/pages/Edit.vue" from the Output panel.
  2. Rewrite the git command to "git show daefed355709ab1abc070ab706400a50eceea3c0:src/modules/attendance/pages/Edit.vue"
  3. Execute the new command in the VSCode Internal Terminal. The git-diff becomes available.

As a result, I doubt whether the git command "git show ***" is incorrectly built.

stuartZhang avatar Jul 24 '18 10:07 stuartZhang

I'm having the same issue.

image

keidsito avatar Aug 01 '18 06:08 keidsito

Oddly, this doesn't seem to be constant. Today I was frustrated and kept clicking compare to previous and at one point it just worked. I didn't make any changes or even leave that window. Just tried it multiple times.

RevFry avatar Aug 07 '18 15:08 RevFry

+1 I am seeing the same issues

git show --pretty=oneline --decorate=full --numstat f4728459bdb0ff087e529b8accd0163f72aa726a  (completed in 0.151s)
git show --numstat --pretty=oneline -M f4728459bdb0ff087e529b8accd0163f72aa726a  (completed in 0.137s)
git show --name-status --pretty=oneline -M f4728459bdb0ff087e529b8accd0163f72aa726a  (completed in 0.145s)
git remote get-url origin  (completed in 0.153s)
git log --pretty=oneline f4728459bdb0ff087e529b8accd0163f72aa726a^1 -n 1 -- ..\..\..\..\..\c:\Users\hussem1\Documents\Projects\DemoProject\README.md  (completed in 0.142s)
fatal: ..\..\..\..\..\c:\Users\hussem1\Documents\Projects\DemoProject\README.md: '..\..\..\..\..\c:\Users\hussem1\Documents\Projects\DemoProject\README.md' is outside repository

hussem1 avatar Aug 08 '18 20:08 hussem1

+1 having issue

pacher avatar Sep 03 '18 10:09 pacher

+1 same issue

lavaner avatar Sep 19 '18 02:09 lavaner

+1 to issue having

azhukov87 avatar Sep 20 '18 14:09 azhukov87

guys! if you have the same problem on WINDOWS, you could get your answer at #316 . Install that unofficial git-history-vscode, and it will work for this function

JWleo avatar Sep 20 '18 15:09 JWleo

@JWleo thank you for telling others about the PR

but, better you change "gays" to "guys" in your sentence ;-)

ole1986 avatar Sep 20 '18 16:09 ole1986

@JWleo vsix is no longer available for download.

hussem1 avatar Sep 21 '18 00:09 hussem1

@hussem1 https://www.cloud86.de/sdm_downloads/git-history-v0-4-3-unofficial-release/ @ole1986

JWleo avatar Sep 21 '18 00:09 JWleo

It says

The page could not be found. Nothing was found at this point. Try a search or try the links below

hussem1 avatar Sep 21 '18 00:09 hussem1

@hussem1 May be something wrong about your internet. default

JWleo avatar Sep 22 '18 01:09 JWleo

@JWleo Thank you, I downloaded and tested it. Works great. I hope this gets merged soon.

MJayyusi avatar Sep 22 '18 06:09 MJayyusi