Re: [git-users] Git rebase proposal: Should rebase preserve commit dates as it rewrites, I vote yes

2018-08-16 Thread Timothy Rice
Hi Eric,

> I propose default rebase operation should preserve either the commit 
> date/author date so that I can legitimately use the git commit log as a 
> backup to my timesheet.  A squashed commit clearly loses its dates, but the 
> rebase operation should preserve commit date/author date.
> 
> What do others think?

Personally, I think what you're saying sounds reasonable. However, you're
talking about a change in the Git source code, so you won't find much
traction on this particular mailing list, which is more focused on everyday
git usage, by and for end users.

Your query would not be inappropriate on the Git development mailing list
which you can subscribe to at http://vger.kernel.org/vger-lists.html#git

~ Tim

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Git rebase proposal: Should rebase preserve commit dates as it rewrites, I vote yes

2018-08-16 Thread Eric Newton
Sometimes I use the git commit log to confirm my timesheets.

However this fails sometimes when I have a commit that I missed getting a 
particular file into, and I commit something like "squash into commit with 
" for eventual `git rebase -i` to fix the commits

This is before pushing into server too, for whatever that matters.

I propose default rebase operation should preserve either the commit 
date/author date so that I can legitimately use the git commit log as a 
backup to my timesheet.  A squashed commit clearly loses its dates, but the 
rebase operation should preserve commit date/author date.

What do others think?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] httpd backend - repo not found.

2018-08-16 Thread christian . tremel
i fiddled around with it a few more hours and came to the conclusion that 
this is hopeless. i decided to switch to gerrit codereview.

On Tuesday, August 14, 2018 at 7:32:28 PM UTC+2, Konstantin Khomoutov wrote:
>
> On Tue, Aug 14, 2018 at 02:24:30AM -0700, christia...@itsv.at 
>  wrote: 
>
> > i am trying to set up gitweb and the http backend. gitweb works so far, 
> but 
> > the http backend is giving me headaches. i always get "fatal: repository 
>   
> > not found  errors, which is quite frustrating as gitweb works perfectly 
> > well with the same url. i wasted hours on this, so any help would be 
> really 
> > nice! 
>
> Setting this stuff right might indeed be tricky. 
>
> I would highly recommend you to first disable mod_rewrite altogether and 
> try to get it working without it. The reason is that in my personal 
> experience (with web developers) using mod_rewrite is their first and 
> often the sole tactic in trying to solve any issue of mapping URLs to 
> the filesystem, and unfortunately, mod_rewrite is another moving part in 
> the already complicated gizmo, and the way it moves is not obvious. 
>
> Okay, the way Git works via HTTP is actually documented in [1], 
> and trust me, you're supposed to read it several times to understand 
> completely. 
>
> One of the major takeaways from it is that base part of your "Git" URL 
> must be mapped to the filesystem pathname of the `git-http-backend` 
> binary installed in your system. IOW, if you cant, say, your repos to be 
> located via, say, "http://test.sozvers.at/git/...; URLs, the base path 
> "/git/" (notice the trailing slash!) on the vhost serving 
> "test.sozvers.at" must map exactly to something like 
> "/usr/lib/git-core/git-http-backend/" (notice the trailing slash, 
> again!). The pathname shown is okay for Git packaged for Debian (and its 
> derivatives; check the package provided by your OS) to find out where 
> the git-http-backend binary is located on your system. 
>
> A typical way to map base pathnames from URLs to the git-http-backend 
> binary is through the ScriptAlias directive, like in 
>
> Here is a skeleton example of a vhost serving both Git and Gitweb: 
>
>  
> ServerName  git.domain.local 
> ServerAlias git 
>
> ServerAdmin webmaster@domain.local 
>
> DocumentRoot /var/www/git 
>
>  
> Require all denied 
> AllowOverride none 
> Options none 
>  
>
>  
> Options +FollowSymLinks +ExecCGI 
> AddHandler cgi-script .cgi 
>  
>
> ScriptAlias /git/ /usr/lib/git-core/git-http-backend/ 
>  
>
>
> To make it fully working, you'd have to set up the GIT_PROJECT_ROOT 
> environment variable in your vhost config for Git to be able to find 
> the repositories. See [1] for more info. 
>
>
> After having the basic stipped down setup working, you may add 
> proper  directives to tighten access controls, if needed. 
>
>
> One another possible caveat is that if you're using mod_suexec to make 
> Git repos be served using the credentials of a dedicated user - 
> different from that of the web server process is using - stuff gets more 
> complicated as mod_suexec strips all the environment variables set in 
> the vhost config. If you have this situation, ask away as I have a 
> workaround. 
>
> 1. 
> https://mirrors.edge.kernel.org/pub/software/scm/git/docs/git-http-backend.html
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.