Re: [git-users] Which git commands provoke clean and/or smudge?

2016-02-26 Thread Christopher Hardage

>
> However, as a wider question: Why do you need to know?
>

I appreciate your interest, Philip. I am not currently trying to solve a 
specific problem (unless you count ignorance on my own part). I was reading 
"Pro Git" and it occurred to me that Mr. Chacon only mentions the checkout 
and add commands with respect to smudge and clean. Based on my own 
observations, I have concluded status does too. I was curious as to which 
others did, and after Googling around and finding very little, I thought 
I'd ask.

Just trying to understand the internals better...

Thanks!
Christopher Hardage

On Friday, February 26, 2016 at 12:16:46 PM UTC-6, Philip Oakley wrote:
>
> *From:* Christopher Hardage  
> All, 
>
> I am seeking a comprehensive list of git commands that provoke clean 
> and/or smudge. I know that git add does so during git checkout (smudge 
> filter) and during git add (clean filter) from pages 342-344 in Scott 
> Chacon's “Pro Git.” I have surmised that git status also runs the clean 
> filter. After much Googling, I cannot find a single reference that gives a 
> comprehensive list of which commands provoke these filters. 
>
> Does someone know of one, or perhaps have better Google-fu and can point 
> me to the right resource?
>
> Thanks!
> Christopher Hardage
>
> In general (AFAIUI) they are always used whenever data is moved between 
> the worktree (file system) and the repository (object store and index). 
>  
> I think that one of the cat-file style commands will do an explicit binary 
> output.
>  
> However, as a wider question: Why do you need to know?, is there a bigger 
> problem that you are trying to solve, an XY Problem (
> http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem; 
> http://xyproblem.info/)
>  
> --
>  
> Philip
>

-- 
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] Which git commands provoke clean and/or smudge?

2016-02-26 Thread Philip Oakley
  From: Christopher Hardage 
  All,


  I am seeking a comprehensive list of git commands that provoke clean and/or 
smudge. I know that git add does so during git checkout (smudge filter) and 
during git add (clean filter) from pages 342-344 in Scott Chacon's “Pro Git.” I 
have surmised that git status also runs the clean filter. After much Googling, 
I cannot find a single reference that gives a comprehensive list of which 
commands provoke these filters. 


  Does someone know of one, or perhaps have better Google-fu and can point me 
to the right resource?


  Thanks!
  Christopher Hardage
In general (AFAIUI) they are always used whenever data is moved between the 
worktree (file system) and the repository (object store and index). 

I think that one of the cat-file style commands will do an explicit binary 
output.

However, as a wider question: Why do you need to know?, is there a bigger 
problem that you are trying to solve, an XY Problem 
(http://meta.stackexchange.com/questions/66377/what-is-the-xy-problem; 
http://xyproblem.info/)

--

Philip

-- 
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] Which git commands provoke clean and/or smudge?

2016-02-26 Thread Konstantin Khomoutov
On Fri, 26 Feb 2016 09:07:27 -0800 (PST)
Christopher Hardage  wrote:

> I am seeking a comprehensive list of git commands that provoke clean
> and/or smudge. I know that git add does so during git checkout
> (smudge filter) and during git add (clean filter) from pages 342-344
> in Scott Chacon's “Pro Git.” I have surmised that git status also
> runs the clean filter. After much Googling, I cannot find a single
> reference that gives a comprehensive list of which commands provoke
> these filters. 
> 
> Does someone know of one, or perhaps have better Google-fu and can
> point me to the right resource?

I'm afraid, the right resource is the Git source code [1].

You can start with convert.h which defines the internal API used by the
code implementing various Git commands to filter blobs.  Basically, the
idea that any command whose implementation calls out to any of these
functions is susceptible to using filters.

1. https://github.com/git/git

-- 
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.