You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm a relative beginner with Git, git-xl 0.4, and SourceTree, and I've been playing around with using these tools to manage some xlsm files. Sorry for the double post (https://community.atlassian.com/t5/Sourcetree-questions/SourceTree-VBA-Macros-via-xltrail/qaq-p/818400), but I figured posting a new question instead of an answer may get me some traction.
Everything seemed to be working swimmingly, but I ran into some trouble when I edited a VBA module in one of my xlsm files and then observed it in Sourcetree.
When I try to stage or discard lines/hunk, I get the following error:
The content of that file is:
diff --git a/diff_results.xlsm b/diff_results.xlsm
@@ -11,8 +11,8 @@
' Return code?
Call RunPowerShell(cmd, "CompareResults")
[31m-' dummy comment added
[32m+' dummy comment revised after being added
I verified that I could discard hunk with a change to a simple text file, so I think my basic sourcetree and repo setup is right. Perhaps git-xl doesn't support patching like this? Or might something else be the problem?
Hi Tony, and welcome to the Community!
I found a solution for a similar issue on this post.
I think this error is coming from the git-xltrail side, and it's not a malfunction in Sourcetree. In that case there won't be much we can do to help. If I'm mistaken and the issue is caused by Sourcetree, please let us know and we'll be happy to continue helping you.
Also, as both Sourcetree and git-xltrail developers were involved in your previous thread, I believe it makes more sense to continue the conversation there instead of creating a new thread that they might not see.