threads / patch / 49532

patchdoc: move git-rev-parse from porcelain to plumbing

Subject: [PATCH] doc: move git-rev-parse from porcelain to plumbing

## tl;dr

4 messages between Oct 10, 2018 and Oct 10, 2018. Diffs are folded; open one to read it.

replies: 3people: 2as markdown or json

Daniels Umanovskis· Oct 10, 2018, 21:37 UTC · lore

git-rev-parse mostly seems like plumbing, and is more usd in scripts than in regular use. Online it's often mentioned as a plumbing command. Nonetheless it's listed under porcelain interrogators in `man git`. It seems appropriate to formally move git-rev-parse to plumbing interrogators.

Signed-off-by: Daniels Umanovskis <daniels@umanovskis.se>
---
 command-list.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to command-list.txt +1 −1
diff --git a/command-list.txt b/command-list.txt
index c36ea3c18..e6364e167 100644
--- a/command-list.txt
+++ b/command-list.txt
@@ -153,7 +153,7 @@ git-rerere                              ancillaryinterrogators
 git-reset                               mainporcelain           worktree
 git-revert                              mainporcelain
 git-rev-list                            plumbinginterrogators
-git-rev-parse                           ancillaryinterrogators
+git-rev-parse                           plumbinginterrogators
 git-rm                                  mainporcelain           worktree
 git-send-email                          foreignscminterface             complete
 git-send-pack                           synchingrepositories
-- 
2.19.1.330.g93276587c.dirty
Junio C Hamano· Oct 10, 2018, 22:26 UTC · re: Daniels Umanovskis · lore

Re: [PATCH] doc: move git-rev-parse from porcelain to plumbing

Daniels Umanovskis <daniels@umanovskis.se> writes:
Show 5 quoted lines
> git-rev-parse mostly seems like plumbing, and is more usd in
> scripts than in regular use. Online it's often mentioned as
> a plumbing command. Nonetheless it's listed under porcelain
> interrogators in `man git`. It seems appropriate to formally
> move git-rev-parse to plumbing interrogators.

Correct. "ancillary" category ended up with full of Porcelain, it seems, but there still are plumbing commands there, and this is a prime example that should not be mixed up with Porcelain commands.

Among the remaining ones in the list, cherry and get-tar-commit-id are probably better classified as plumbing. I do not know why cherry is marked for completion; perhaps some crazy people use that on the command line?

Daniels Umanovskis· Oct 10, 2018, 22:56 UTC · re: Junio C Hamano · lore

Re: [PATCH] doc: move git-rev-parse from porcelain to plumbing

On 10/11/18 12:26 AM, Junio C Hamano wrote:
> Among the remaining ones in the list, cherry and get-tar-commit-id
> are probably better classified as plumbing.  I do not know why
> cherry is marked for completion; perhaps some crazy people use that
> on the command line?

I think cherry could go either way, get-tar-commit-id is definitely plumbing. Would you like me to fix those two on the same patch then?

Junio C Hamano· Oct 10, 2018, 23:40 UTC · re: Daniels Umanovskis · lore

Re: [PATCH] doc: move git-rev-parse from porcelain to plumbing

Daniels Umanovskis <daniels@umanovskis.se> writes:
Show 8 quoted lines
> On 10/11/18 12:26 AM, Junio C Hamano wrote:
>> Among the remaining ones in the list, cherry and get-tar-commit-id
>> are probably better classified as plumbing.  I do not know why
>> cherry is marked for completion; perhaps some crazy people use that
>> on the command line?
>
> I think cherry could go either way, get-tar-commit-id is definitely
> plumbing. Would you like me to fix those two on the same patch then?

No, what you sent for rev-parse is already good. A separate patch that addresses other ones can be discussed as an orthogonal matter. It even may deserve to make them two separate patches, as I anticipate that some people would resist marking "cherry" as plumbing, so that only one can be applied while dropping the other as/if needed.

Thanks.

← back to recent threads