Re: Proposal and Validation of Git Compile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 12, 2024 at 11:24:17PM -0400, Bhargav Vishnu wrote:

> I'm writing to propose and get a validation of one of the ideas I had for
> git tool.
[...]
> Eg: Code on a gist is copied into every repository, why not create and use
> the gist itself as it also has versioning?
[...]

In addition to what Reto said in their respective answer, you seem to confuse
Git (a version control tool) and Github - a turn-key Git hosting solution.
The thing is, the concept of "gists" does not exist in Git, and also it does
not have any real concept of a repository fork, a pull request, issue tracking
and so on.
That is, to build what you propose on your workflow picture, you'd need to
implement it in Github, not Git.

That said, I support what Reto said: Gists are merely pastebins [1] of the
21th century, and I think you perceive them as version-controlled code because
you supposedly are a relatively young person ;-) For an old fart like me,
Gists are just a sort of convenient way to share snippets of code with someone
else (say, when you're chatting on StackOverflow or elsewhere and would like
to show to your peer a bit more than a one-liner).

And if we think about making reusable pieces of code, this is ineed a solved
problem: libraries, packages and package repositories.
Not that I do not find your idea having a particular appeal - it does, - just
it's not in the domain of Git itself. A packaging system could possibly
somehow intergate with Gists (but note that that could only really sensibly
work for interpreted languages such as JS, which you seem to think of anyway),
but that's a task for that package system, not Git. For instance, Go's package
management system allows storage of the packages (in the form of the source
code) using multiple VC systems - namely, Git, Mercurial, Fossil and
Subversion, and it's semi-transparent to the users. Note that implementing
this package system did not require any support from the mentioned VC systems.
Quite possibly, say, NPM, could be made to work with Gists in the way you
envision, but it's to be discussed with NPM folks, not Git folks.

 1. https://en.wikipedia.org/wiki/Pastebin





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux