-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
builtin/remote.c: teach -v
to list filters for promisor remotes
#1227
Conversation
Hi @Abhra303, thanks for having a go at that! I encourage you to send it to the list for review :) |
@phil-blain , Yes I will. I was waiting for the tests to complete. Thanks :) |
/submit |
Submitted as pull.1227.git.1651324796892.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
|
On the Git mailing list, Philip Oakley wrote (reply to this):
|
User |
On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
|
/submit |
Submitted as pull.1227.v2.git.1651591253333.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Junio C Hamano wrote (reply to this):
|
This branch is now known as |
This patch series was integrated into seen via git@ffd5311. |
On the Git mailing list, Abhradeep Chakraborty wrote (reply to this):
|
There was a status update in the "New Topics" section about the branch source: <pull.1227.v2.git.1651591253333.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@8001664. |
/preview |
Preview email sent as pull.1227.v3.git.1651932390964.gitgitgadget@gmail.com |
/submit |
Submitted as pull.1227.v3.git.1651933221216.gitgitgadget@gmail.com To fetch this version into
To fetch this version to local tag
|
On the Git mailing list, Philippe Blain wrote (reply to this):
|
User |
On the Git mailing list, Philippe Blain wrote (reply to this):
|
This patch series was integrated into seen via git@bc7d1df. |
This patch series was integrated into seen via git@b585b80. |
This patch series was integrated into seen via git@e6ba461. |
There was a status update in the "Cooking" section about the branch "git remote -v" now shows the list-objects-filter used during fetching from the remote, if available. source: <pull.1227.v4.git.1652095969026.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@482f593. |
On the Git mailing list, Abhradeep Chakraborty wrote (reply to this): Junio C Hamano <gitster@pobox.com> wrote:
> Isn't it where we already are with "remote -v", though? I am not
> sure addition of excess information that may not be universally
> useful is a very welcome change, even with "remote -v -v". I am not
> worried about showing the "list-object-filter", but I worry about
> managing temptations of future developers to add other stuff.
If future developers come up with some really useful stuff (i.e.
universally useful), I think those should be added in the output
irrespective of the no of existing info in the output. If the
output becomes messy, we should focus on how we can make the output
clear may be using tabular format.
Else you can drop the idea and suggest them to introduce a new flag
(depending on the situation). If you still have some doubt about my
PR i.e. if you can not determine which category my PR belongs to, I
can go with adding `show-partial-clone` flag. The downside would
be that `remote -v` will not give the full summary in case of partial
clone.
If you like the tabular format approach, I am further going to propose
a table format -
+---------------+----------------------------------------------+
| remote name | remote info |
+---------------+--------+--------+----------------------------+
| | | url | https://blah.com/blah.git |
| origin | +--------+----------------------------+
| | | filter | blob:none |
| | fetch +--------+----------------------------+
| | | . |
| | | . (some important data) |
| +--------+--------+----------------------------+
| | | url | https://blah.com/blah.git |
| | push +--------+----------------------------+
| | | ... (some important data) |
+---------------+--------+-------------------------------------+
In this way, user can see the summary of all remotes with visual ease.
Of course it is not suitable for scripting. In that case we can use
a new flag `--raw` which will let `-v` to provide a space/tab seperated
sequence of info (similar to current format).
Let me know if you (as in all) like/dislike my view and give your
arguments regarding my proposal.
Thanks :) |
On the Git mailing list, Junio C Hamano wrote (reply to this): Abhradeep Chakraborty <chakrabortyabhradeep79@gmail.com> writes:
> Else you can drop the idea and suggest them to introduce a new flag
> (depending on the situation). If you still have some doubt about my
> PR i.e. if you can not determine which category my PR belongs to, I
> can go with adding `show-partial-clone` flag. The downside would
> be that `remote -v` will not give the full summary in case of partial
> clone.
If majority of partial-clone users find it unnecessary noise, then
it may be an upside to give only reduced summary that is less than
full that may be given by `remote -v -v`.
Worse downside of adding it as an option is that it invites more
options. It is less worse to add new ones to `remote -v -v` (or to
`remote -v`, or not adding it at all) than adding another option, I
would think.
Perhaps tagged output that can be easier to parse would be better
"extensible" output format for adding more random pieces of
information than going tabular. I dunno. |
This patch series was integrated into seen via git@78012c5. |
On the Git mailing list, Abhradeep Chakraborty wrote (reply to this): Junio C Hamano <gitster@pobox.com> wrote:
> If majority of partial-clone users find it unnecessary noise, then
> it may be an upside to give only reduced summary that is less than
> full that may be given by `remote -v -v`.
Should I add this to `remote -v -v` then? `remote -vv` is currently
not implemented I guess.
> Perhaps tagged output that can be easier to parse would be better
> "extensible" output format for adding more random pieces of
> information than going tabular. I dunno.
I am not sure what exactly you are refering by 'tagged output' but
it is true that tabular form is hard to parse. That's why I suggested
`--raw` flag which would be used for parsing. It would give the info
following the currently implemented format.
If you like the tagged output format, then should we implement `-vv` which
would give the output as the tagged output format and also can be
extended?
|
This patch series was integrated into seen via git@82d8600. |
This patch series was integrated into seen via git@599fbfa. |
There was a status update in the "Cooking" section about the branch "git remote -v" now shows the list-objects-filter used during fetching from the remote, if available. Will merge to 'next'? source: <pull.1227.v4.git.1652095969026.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@6a7b2b2. |
This patch series was integrated into seen via git@3603ceb. |
This patch series was integrated into seen via git@90310b4. |
This patch series was integrated into seen via git@0b5e3e7. |
This patch series was integrated into seen via git@ebd9661. |
This patch series was integrated into next via git@8d2dc10. |
There was a status update in the "Cooking" section about the branch "git remote -v" now shows the list-objects-filter used during fetching from the remote, if available. Will merge to 'master'. source: <pull.1227.v4.git.1652095969026.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@e118784. |
This patch series was integrated into seen via git@c16a9d4. |
This patch series was integrated into seen via git@6f4fd80. |
There was a status update in the "Cooking" section about the branch "git remote -v" now shows the list-objects-filter used during fetching from the remote, if available. Will merge to 'master'. source: <pull.1227.v4.git.1652095969026.gitgitgadget@gmail.com> |
This patch series was integrated into seen via git@2785b71. |
This patch series was integrated into master via git@2785b71. |
This patch series was integrated into next via git@2785b71. |
Closed via 2785b71. |
Fixes #1211 [1]
Changes since v3:
t5505-remote.sh
Closes
trailer in the commit messageChanges since v2:
Changes since v1:
[1] #1211
cc: Philip Oakley philipoakley@iee.email
cc: Junio C Hamano gitster@pobox.com
cc: Philippe Blain levraiphilippeblain@gmail.com
cc: Taylor Blau me@ttaylorr.com