all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Magit reports binary files that don't exist
Date: Sat, 23 Aug 2014 00:05:01 +0200	[thread overview]
Message-ID: <874mx4b2pe.fsf@gmail.com> (raw)
In-Reply-To: CAP_d_8U5AqukW1=rbfxYxNQntXTLbRsp92LaD=wTrb+QX2-jNA@mail.gmail.com

Yuri Khan <yuri.v.khan@gmail.com> writes:

> On Fri, Aug 22, 2014 at 11:06 PM, Thorsten Jolitz <tjolitz@gmail.com>
> wrote:
>
>> Its relatively new for me too, and I'm managing hundreds of .el files too
>> for quite some time now.
>
> Open up the log in gitk. Find a file that is detected as binary.
> Right-click it in the bottom right frame, select “Highlight this
> only”. This will highlight all commits where this file is modified
> with bold in the top frame. (Why gitk and not magit? Because gitk
> shows you a list of commits and the diff in one window, and you can
> just press the down arrow until you hit the commit you’re looking for.
> Magit only shows you the list of commits and you have to press Enter
> or Space on each in order to see diffs.)
>
> Now follow the trail. Several topmost commits will report that the
> file is binary and that it changed. Eventually, though, you will find
> the first commit that introduced binariness to this file.
>
> Check out that commit. Look at the file. Maybe do a ‘diff -au’ against
> its previous version (when it was still text). Look what changed.
> Think which specific change could make a text file binary.

I'm only working on the console, so I cannot use the mouse. But I will
follow your recipe anyway, although it seems likely now that my use of
literal NUL chars in regexps convinced git that my .el files are binary
files. 

Thanks for the tip. 

-- 
cheers,
Thorsten




  reply	other threads:[~2014-08-22 22:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-22 11:23 Magit reports binary files that don't exist Thorsten Jolitz
2014-08-22 13:43 ` Óscar Fuentes
2014-08-22 14:12   ` Yuri Khan
2014-08-22 14:31   ` Thorsten Jolitz
2014-08-22 14:51     ` Óscar Fuentes
2014-08-22 16:06       ` Thorsten Jolitz
2014-08-22 16:25         ` Thorsten Jolitz
2014-08-22 19:40           ` Nicolas Richard
2014-08-22 22:07             ` Thorsten Jolitz
2014-08-23 12:07               ` Nicolas Richard
2014-08-23 12:26                 ` Thorsten Jolitz
2014-08-23 20:38                   ` Nicolas Richard
2014-08-23 21:31                     ` Thorsten Jolitz
2014-08-22 16:43         ` Yuri Khan
2014-08-22 22:05           ` Thorsten Jolitz [this message]
2014-08-23  5:00             ` Yuri Khan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874mx4b2pe.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.