Hacker News new | ask | show | jobs
by alexdme 1960 days ago
I like that this doesn't assume what editor and git remote someone uses unlike github1s which is further pushing the development community toward centralizing on Github+VScode. Diversity is good.

You inspired me to write my own. Here is a 9-line shell script version of git-peak: https://git.sr.ht/~alexdavid/dotfiles/tree/master/bin/git-pe...

It doesn't do any fancy tarball magic for Github links, but the shallow clone works fast enough for me - sub 3s on modestly sized repos (especially on non-github repos since github is fairly slow to clone/push/pull).

3 comments

I think it’s a big stretch to say that providing tools which interoperate with product A and not product B is pushing anyone toward anything. By that logic everything is coercive. This is like when I was informed that I was ruining free computing by personally preferring a less free desktop OS for my own usage and encouraging others to choose what they prefer.

I’m glad you made something that works for more environments. But be careful, you may be accused of pushing more people to use git over mercurial.

Good points. For the record I wasn't trying to say that github1s is "ruining free computing", I was trying to convey the opposite. More diversity is good.

If this had been published first, and github1s came along afterward to make it easier for users who don't set $EDITOR I'd be just as happy that it makes development more inclusive for all, not matter what the tools one prefers.

I'd love to see a mercurial version as well :)

Good points as well and I’m sorry if I was overly defensive. I agree totally that diversity is a good thing. I mistook some of your wording. But it’s clear you’re sincere about inclusion and I’m glad we had the opportunity to expand the conversation a bit! Thank you.
it is a defensible position though, with countless examples. In the real world, mind share determines the fate of technology.

As the simplest example, take the monopoly of IE6 which was reinforced by web site makers who did not interoperate with other browsers because they expected the majority to use IE.

I was one of those website makers and while I took great pains to support Netscape, I regret to inform you that Netscape was bad and the people who didn’t want to support it were right.

Edit: lest I forget, I also took great pains to support IE, which also was bad, and the people who didn’t want to support it were also right.

Thank you. Way better than the TypeScript version. Ugh. It may not have those features though. I will just add them myself.
Why not just curl the raw file and ignore any git cloing at all?
I think because we want to open the entire folder, how would that work?
some kind of httpfs mount? That would be seriously cool!
Oh. Yeah, ofc, my fault. I missed that.
I don't think it will work "as is" because github does not expose the directory structure in a way that httpfs understands out of the box. But some hacker around here could probably make an httpfs-github that does the job.