Re: Bug in Git-Gui - Creates corrupt patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hannes / List,

Thank you for the advise on "\ No newline at end of file".

I have almost 4,000 files that are formatted with "\ No newline at end
of file".  Does anyone know of an easy way to re-format my files so
that they have a newline at the end?

The files in question are PHP files that are dynamically included, so I
want to prevent arbitrary spaces from showing up in the rendered pages.

I'm running Linux.  A bash or perl script would be preferable, but
anything will suffice.

Thanks!


> Johannes Sixt <j.sixt@xxxxxxxxxxxxx> wrote:
>
> 4jxDQ6FQee2H@xxxxxxxxxx schrieb:
> > 3. Using git-gui, try to stage *only* the last line marked for
> > removal (should be '-	}').
> > 
> > I get 'fatal: corrupt patch at line 22'.  
> 
> "Stage/Unstage line" does not work for files that have
> 
> \ No newline at end of file
> 
> -- Hannes
> 
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux