I recommend to look into git log --help and git rev-list --help .

I just created 2 scripts to list commits from Git repositories. It’s more in the score of an alias actually, so nothing comprehensive here. If you have some one-liners, alias or scripts for commits listing, please share here. The link of this post goes to the git log documentation. I’ll share mine in the comments too rather than in the post.

  • Alavi@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    5 days ago

    Thank you for your great explanation.

    Is porcelain inherently different from API? Or are they basically different names?

    • duckduckduck@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      19 hours ago

      Personally, I think that’s a decent mental shortcut. I would call an API “good plumbing.” It kind of depends on your audience, for some the API is for the intended audience (developers), but from their perspective the API may be the plumbing while they provide a higher level tool (eg. a GUI) for their intended audience (regular people).

    • bignose@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 days ago

      Is porcelain inherently different from API?

      Completely distinct, yes.

      An API (Application Programming Interface) is specifically for application developers who are writing an application that interfaces with this system. By definition, this is not the action of an end user.

      An end user, on the other hand, is someone who cannot be assumed to know anything about the internals (plumbing) and needs a user interface that, ideally, hides all the plumbing entirely and presents an abstracted interface (a porcelain) that makes sense for the task they want to perform, regardless of whether or not the concepts there actually represent what’s going on in the plumbing.