Michael <[email protected]> writes: > On 2016-12-22, at 12:33 AM, Oded Badt <[email protected]> wrote: > >> Update: A coworker found a workaround to my original question: >> >> [filter "remove_outputs"] >> clean = /bin/sh -c '$PWD/remove_outputs' >> smudge = cat >> >> Works as long as remove_outputs is in the repo root and thats where you run >> your git commands > > What if you run git commands from deep inside the git repository, i.e., if > you "live" down in src/java/main/ and have a bunch of class files down there? > > Does git have a "$GIT_ROOT" that it exports? If not, would this be a good > thing to add?
Run `env` in your filter to find out what's available. I suspect one or both of GIT_WORK_TREE, GIT_DIR are set. /M -- Magnus Therning OpenPGP: 0x927912051716CE39 email: [email protected] jabber: [email protected] twitter: magthe http://therning.org/magnus Software isn't finished until the last user is dead. — head on FLOSS Weekly -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: PGP signature
