Which are the plumbing and porcelain commands?

后端 未结 4 1668
醉梦人生
醉梦人生 2020-11-30 03:00

For git commands there is this distinction between \"plumbing\" and \"porcelain\" commands. How can I determine what would be classified as a

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-30 03:44

    I think there is no straight line between commands.

    Commands that you use from day to day are porcelain (think about status, diff, commit...), less used commands, which give less formated outputs are plumbing (think about diff-index, hash-object or send-pack).

    You can have a full list of git commands using git help -a. It's pretty easy to tell here which command belongs more to porcelain or plumbering.

    Looking at the manual of git send-pack you can see the following line

    Usually you would want to use git push, which is a higher-level wrapper of this command, instead.

    This is what's telling you that it more a plumbing command.

提交回复
热议问题