4 ms·
Nice idea but I have an issue. I'm on the new MBP with the M1 and I have code-insiders installed as it runs natively. So I tried the following: git peek https
by panzerboy 6y ago
Nice idea but I have an issue. I'm on the new MBP with the M1 and I have code-insiders installed as it runs natively.
So I tried the following:
git peek https://github.com/ylukem/pin-go https://github.com/ylukem/pin-go -e code-insiders
It works, it downloads the repo, opens the editor but it immediately deletes it! Any idea how to fix this?
- Jarred 6y agoAuthor here — this is actually not a bug, but a deliberate design decision (so long as you meant, when the editor closes). I’m sorry for the confusion. git peek is not a faster alternative to git clone. It’s for quickly reading other people’s code without needing to keep it around for writing or updating. That being said, I could make it not delete the code after the editor closes and keep it somewhere. It just won’t have access to the git tree and other things you’d expect. I could add a flag like —keep that doesn’t delete it and let’s you pass a place to put it.
- testing_1_2_3_4 6y agoThanks for jumping in Jarred. My mistake, I wasn't aware of the rule and just wanted to share you project because it was so cool.
- Jarred 6y agoTurns out this was a bug – it wasn't properly adding `--wait` when opening the editor. Its fixed in 1.1.15.