git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* please add link / url to remote - when - git push
@ 2023-10-29 23:15 Alexander Mills
  2023-10-30  6:36 ` Torsten Bögershausen
  2023-10-30 15:55 ` Taylor Blau
  0 siblings, 2 replies; 11+ messages in thread
From: Alexander Mills @ 2023-10-29 23:15 UTC (permalink / raw)
  To: git

When a feature branch is pushed, we get a link in the console to go to
remote, however when I push directly to main/master, no such link, eg:

```
alex.mills@alex node-be % git push
Enumerating objects: 20, done.
Counting objects: 100% (20/20), done.
Delta compression using up to 12 threads
Compressing objects: 100% (10/10), done.
Writing objects: 100% (11/11), 1.56 KiB | 799.00 KiB/s, done.
Total 11 (delta 7), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
remote: Bypassed rule violations for refs/heads/main:
remote:
remote: - Changes must be made through a pull request.
remote:
To github.com:elx-onlinx/beautychat-chatcards.git
   ffe1e05..bb7b0ef  main -> main
```

Having the link in the console saves me tremendous time and is
extremely effective/efficient. Can we get links in the console plz?

-alex

-- 
Alexander D. Mills
Mobile phone (737) 281-4824
https://linkedin.com/in/alexanderdmills

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-29 23:15 please add link / url to remote - when - git push Alexander Mills
@ 2023-10-30  6:36 ` Torsten Bögershausen
  2023-10-30  6:55   ` Junio C Hamano
  2023-10-30  8:52   ` Michal Suchánek
  2023-10-30 15:55 ` Taylor Blau
  1 sibling, 2 replies; 11+ messages in thread
From: Torsten Bögershausen @ 2023-10-30  6:36 UTC (permalink / raw)
  To: Alexander Mills; +Cc: git

On Sun, Oct 29, 2023 at 06:15:35PM -0500, Alexander Mills wrote:
> When a feature branch is pushed, we get a link in the console to go to
> remote, however when I push directly to main/master, no such link, eg:
>
> ```
> alex.mills@alex node-be % git push
> Enumerating objects: 20, done.
> Counting objects: 100% (20/20), done.
> Delta compression using up to 12 threads
> Compressing objects: 100% (10/10), done.
> Writing objects: 100% (11/11), 1.56 KiB | 799.00 KiB/s, done.
> Total 11 (delta 7), reused 0 (delta 0), pack-reused 0
> remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
> remote: Bypassed rule violations for refs/heads/main:
> remote:
> remote: - Changes must be made through a pull request.
> remote:
> To github.com:elx-onlinx/beautychat-chatcards.git
>    ffe1e05..bb7b0ef  main -> main
> ```
>
> Having the link in the console saves me tremendous time and is
> extremely effective/efficient. Can we get links in the console plz?
>

If we look very carfully at the log, we see that all the messages prefixed
with "remote:" come from the remote (git server).
In your case github. Other "Git repo servers" like gitlab or bitbucket have
the same feature.

Git itself, running on your local computer, does not produce this links.
If you really want to push directly to the main branch and want to see the
a link, then you better talk to the gihub folks.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-30  6:36 ` Torsten Bögershausen
@ 2023-10-30  6:55   ` Junio C Hamano
  2023-10-30  8:52   ` Michal Suchánek
  1 sibling, 0 replies; 11+ messages in thread
From: Junio C Hamano @ 2023-10-30  6:55 UTC (permalink / raw)
  To: Torsten Bögershausen; +Cc: Alexander Mills, git

Torsten Bögershausen <tboegi@web.de> writes:

> On Sun, Oct 29, 2023 at 06:15:35PM -0500, Alexander Mills wrote:
>> When a feature branch is pushed, we get a link in the console to go to
>> remote, however when I push directly to main/master, no such link, eg:
>>
>> ```
>> alex.mills@alex node-be % git push
>> Enumerating objects: 20, done.
>> Counting objects: 100% (20/20), done.
>> Delta compression using up to 12 threads
>> Compressing objects: 100% (10/10), done.
>> Writing objects: 100% (11/11), 1.56 KiB | 799.00 KiB/s, done.
>> Total 11 (delta 7), reused 0 (delta 0), pack-reused 0
>> remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
>> remote: Bypassed rule violations for refs/heads/main:
>> remote:
>> remote: - Changes must be made through a pull request.
>> remote:
>> To github.com:elx-onlinx/beautychat-chatcards.git
>>    ffe1e05..bb7b0ef  main -> main
>> ```
>>
>> Having the link in the console saves me tremendous time and is
>> extremely effective/efficient. Can we get links in the console plz?
>>
>
> If we look very carfully at the log, we see that all the messages prefixed
> with "remote:" come from the remote (git server).
> In your case github. Other "Git repo servers" like gitlab or bitbucket have
> the same feature.
>
> Git itself, running on your local computer, does not produce this links.
> If you really want to push directly to the main branch and want to see the
> a link, then you better talk to the gihub folks.

Thanks for a good suggestion.

Another piece of advice we may want to give is that a good bugreport
should illustrate both good and bad case.  With only the above one,
I couldn't guess that the complaint was about lack of information
that comes over the wire from remote, *exactly* because the report
failed to show the good case that shows the information and made the
readers guess what thing that does not exist in the output is being
complained about.  A good bugreport should not force readers guess.

If the report had both good and bad cases, it would have helped
readers help the reporter much easier.

Thanks.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-30  6:36 ` Torsten Bögershausen
  2023-10-30  6:55   ` Junio C Hamano
@ 2023-10-30  8:52   ` Michal Suchánek
  2023-10-30  9:06     ` Jeff King
  1 sibling, 1 reply; 11+ messages in thread
From: Michal Suchánek @ 2023-10-30  8:52 UTC (permalink / raw)
  To: Torsten Bögershausen; +Cc: Alexander Mills, git

On Mon, Oct 30, 2023 at 07:36:33AM +0100, Torsten Bögershausen wrote:
> On Sun, Oct 29, 2023 at 06:15:35PM -0500, Alexander Mills wrote:
> > When a feature branch is pushed, we get a link in the console to go to
> > remote, however when I push directly to main/master, no such link, eg:
> >
> > ```
> > alex.mills@alex node-be % git push
> > Enumerating objects: 20, done.
> > Counting objects: 100% (20/20), done.
> > Delta compression using up to 12 threads
> > Compressing objects: 100% (10/10), done.
> > Writing objects: 100% (11/11), 1.56 KiB | 799.00 KiB/s, done.
> > Total 11 (delta 7), reused 0 (delta 0), pack-reused 0
> > remote: Resolving deltas: 100% (7/7), completed with 7 local objects.
> > remote: Bypassed rule violations for refs/heads/main:
> > remote:
> > remote: - Changes must be made through a pull request.
> > remote:
> > To github.com:elx-onlinx/beautychat-chatcards.git
> >    ffe1e05..bb7b0ef  main -> main
> > ```
> >
> > Having the link in the console saves me tremendous time and is
> > extremely effective/efficient. Can we get links in the console plz?
> >
> 
> If we look very carfully at the log, we see that all the messages prefixed
> with "remote:" come from the remote (git server).
> In your case github. Other "Git repo servers" like gitlab or bitbucket have
> the same feature.
> 
> Git itself, running on your local computer, does not produce this links.
> If you really want to push directly to the main branch and want to see the
> a link, then you better talk to the gihub folks.

On the other hand, option to NOT display those remote messages is also
missing. At least with git 2.35 they are displayed even when -q argument
is given.

Thanks

Michal

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-30  8:52   ` Michal Suchánek
@ 2023-10-30  9:06     ` Jeff King
  2023-10-30  9:30       ` Michal Suchánek
  0 siblings, 1 reply; 11+ messages in thread
From: Jeff King @ 2023-10-30  9:06 UTC (permalink / raw)
  To: Michal Suchánek; +Cc: Torsten Bögershausen, Alexander Mills, git

On Mon, Oct 30, 2023 at 09:52:05AM +0100, Michal Suchánek wrote:

> > If we look very carfully at the log, we see that all the messages prefixed
> > with "remote:" come from the remote (git server).
> > In your case github. Other "Git repo servers" like gitlab or bitbucket have
> > the same feature.
> > 
> > Git itself, running on your local computer, does not produce this links.
> > If you really want to push directly to the main branch and want to see the
> > a link, then you better talk to the gihub folks.
> 
> On the other hand, option to NOT display those remote messages is also
> missing. At least with git 2.35 they are displayed even when -q argument
> is given.

That is also up to GitHub to fix on the server side:

  https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/

-Peff

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-30  9:06     ` Jeff King
@ 2023-10-30  9:30       ` Michal Suchánek
  2023-10-30  9:39         ` Jeff King
  0 siblings, 1 reply; 11+ messages in thread
From: Michal Suchánek @ 2023-10-30  9:30 UTC (permalink / raw)
  To: Jeff King; +Cc: Torsten Bögershausen, Alexander Mills, git

On Mon, Oct 30, 2023 at 05:06:26AM -0400, Jeff King wrote:
> On Mon, Oct 30, 2023 at 09:52:05AM +0100, Michal Suchánek wrote:
> 
> > > If we look very carfully at the log, we see that all the messages prefixed
> > > with "remote:" come from the remote (git server).
> > > In your case github. Other "Git repo servers" like gitlab or bitbucket have
> > > the same feature.
> > > 
> > > Git itself, running on your local computer, does not produce this links.
> > > If you really want to push directly to the main branch and want to see the
> > > a link, then you better talk to the gihub folks.
> > 
> > On the other hand, option to NOT display those remote messages is also
> > missing. At least with git 2.35 they are displayed even when -q argument
> > is given.
> 
> That is also up to GitHub to fix on the server side:
> 
>   https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/

If the server did not reject the push the messages it returns could be
considered informational.

Not sure if the final status of the push is available or of the
rejection is only noted in these messages, though.

Thanks

Michal

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-30  9:30       ` Michal Suchánek
@ 2023-10-30  9:39         ` Jeff King
  2023-10-30  9:45           ` Michal Suchánek
  0 siblings, 1 reply; 11+ messages in thread
From: Jeff King @ 2023-10-30  9:39 UTC (permalink / raw)
  To: Michal Suchánek; +Cc: Torsten Bögershausen, Alexander Mills, git

On Mon, Oct 30, 2023 at 10:30:23AM +0100, Michal Suchánek wrote:

> > > On the other hand, option to NOT display those remote messages is also
> > > missing. At least with git 2.35 they are displayed even when -q argument
> > > is given.
> > 
> > That is also up to GitHub to fix on the server side:
> > 
> >   https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/
> 
> If the server did not reject the push the messages it returns could be
> considered informational.

Hmm, yeah, I could perhaps buy that line of argument. Though it's
possible they are "warnings" of the sort that should still be emitted
with "--quiet"; really only the server knows. And note that even "reject
the push" is not necessarily all-or-nothing. The server may accept some
subset of the refs.

But...

> Not sure if the final status of the push is available or of the
> rejection is only noted in these messages, though.

Yes, this is a problem. Those messages are streamed out as we receive
them from the server, and before we get any status report back. I don't
think we'd want to buffer them, as they can be arbitrarily large (and
may even be progress reports that are meant to be shown in real-time).

-Peff

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-30  9:39         ` Jeff King
@ 2023-10-30  9:45           ` Michal Suchánek
  2023-10-30  9:54             ` Jeff King
  0 siblings, 1 reply; 11+ messages in thread
From: Michal Suchánek @ 2023-10-30  9:45 UTC (permalink / raw)
  To: Jeff King; +Cc: Torsten Bögershausen, Alexander Mills, git

On Mon, Oct 30, 2023 at 05:39:19AM -0400, Jeff King wrote:
> On Mon, Oct 30, 2023 at 10:30:23AM +0100, Michal Suchánek wrote:
> 
> > > > On the other hand, option to NOT display those remote messages is also
> > > > missing. At least with git 2.35 they are displayed even when -q argument
> > > > is given.
> > > 
> > > That is also up to GitHub to fix on the server side:
> > > 
> > >   https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/
> > 
> > If the server did not reject the push the messages it returns could be
> > considered informational.
> 
> Hmm, yeah, I could perhaps buy that line of argument. Though it's
> possible they are "warnings" of the sort that should still be emitted
> with "--quiet"; really only the server knows. And note that even "reject
> the push" is not necessarily all-or-nothing. The server may accept some
> subset of the refs.
> 
> But...
> 
> > Not sure if the final status of the push is available or of the
> > rejection is only noted in these messages, though.
> 
> Yes, this is a problem. Those messages are streamed out as we receive
> them from the server, and before we get any status report back. I don't
> think we'd want to buffer them, as they can be arbitrarily large (and
> may even be progress reports that are meant to be shown in real-time).

Not when the user asked to not show progress.

Thanks

Michal

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-30  9:45           ` Michal Suchánek
@ 2023-10-30  9:54             ` Jeff King
  2023-10-30 10:42               ` Michal Suchánek
  0 siblings, 1 reply; 11+ messages in thread
From: Jeff King @ 2023-10-30  9:54 UTC (permalink / raw)
  To: Michal Suchánek; +Cc: Torsten Bögershausen, Alexander Mills, git

On Mon, Oct 30, 2023 at 10:45:56AM +0100, Michal Suchánek wrote:

> > Yes, this is a problem. Those messages are streamed out as we receive
> > them from the server, and before we get any status report back. I don't
> > think we'd want to buffer them, as they can be arbitrarily large (and
> > may even be progress reports that are meant to be shown in real-time).
> 
> Not when the user asked to not show progress.

Sure, if you make the buffering behavior dependent on the presence of
"-q". I guess that is not that hard to do, but it does increase the
complexity of the code (you have both a streaming and a buffering code
path).

Anyway, I am not all that convinced this is a fruitful path versus just
fixing the server side. But if you want to look into writing a patch, go
for it.

-Peff

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-30  9:54             ` Jeff King
@ 2023-10-30 10:42               ` Michal Suchánek
  0 siblings, 0 replies; 11+ messages in thread
From: Michal Suchánek @ 2023-10-30 10:42 UTC (permalink / raw)
  To: Jeff King; +Cc: Torsten Bögershausen, Alexander Mills, git

On Mon, Oct 30, 2023 at 05:54:01AM -0400, Jeff King wrote:
> On Mon, Oct 30, 2023 at 10:45:56AM +0100, Michal Suchánek wrote:
> 
> > > Yes, this is a problem. Those messages are streamed out as we receive
> > > them from the server, and before we get any status report back. I don't
> > > think we'd want to buffer them, as they can be arbitrarily large (and
> > > may even be progress reports that are meant to be shown in real-time).
> > 
> > Not when the user asked to not show progress.
> 
> Sure, if you make the buffering behavior dependent on the presence of
> "-q". I guess that is not that hard to do, but it does increase the
> complexity of the code (you have both a streaming and a buffering code
> path).
> 
> Anyway, I am not all that convinced this is a fruitful path versus just
> fixing the server side. But if you want to look into writing a patch, go
> for it.

I will try to bug the forge upstream first.

Thanks

Michal

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: please add link / url to remote - when - git push
  2023-10-29 23:15 please add link / url to remote - when - git push Alexander Mills
  2023-10-30  6:36 ` Torsten Bögershausen
@ 2023-10-30 15:55 ` Taylor Blau
  1 sibling, 0 replies; 11+ messages in thread
From: Taylor Blau @ 2023-10-30 15:55 UTC (permalink / raw)
  To: Alexander Mills; +Cc: git

Hi Alexander,

On Sun, Oct 29, 2023 at 06:15:35PM -0500, Alexander Mills wrote:
> Having the link in the console saves me tremendous time and is
> extremely effective/efficient. Can we get links in the console plz?

That link is generated at the remote end (in your case, this is on
GitHub) and then sent over the wire before being printed out with the
"remote:" prefix at your terminal.

The Git project does not itself generate these messages, so you may want
to relay your request to GitHub's support address at <support@github.com>.

Thanks,
Taylor

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-10-30 15:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-29 23:15 please add link / url to remote - when - git push Alexander Mills
2023-10-30  6:36 ` Torsten Bögershausen
2023-10-30  6:55   ` Junio C Hamano
2023-10-30  8:52   ` Michal Suchánek
2023-10-30  9:06     ` Jeff King
2023-10-30  9:30       ` Michal Suchánek
2023-10-30  9:39         ` Jeff King
2023-10-30  9:45           ` Michal Suchánek
2023-10-30  9:54             ` Jeff King
2023-10-30 10:42               ` Michal Suchánek
2023-10-30 15:55 ` Taylor Blau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).