On Wed, 11 Mar 2015 04:54:36 -0700 (PDT)
Raluca Popa <typsy1...@gmail.com> wrote:

> Is there a plugin to integrate with GIT in order to have the chance
> to create an archive with the local changes?
> For instance I want to create an archive (zip/jar - I am coding in
> Java) with the files I changed in order to send them via e-mail to a
> technical team lead. That team lead will download the archive I sent
> and create using a command line/user interface command, just to
> create my own local changes on his local machine.

I think you're missing proper code review tools which might be
full-profile (like Gerrit) or low-profile (like just mailing your
changes as a patch or a patchset) so I'd first ponder a possibility of
implementing such a proper code review.

If you still insist on doing it the way you outlined, this solution can
be easily scripted in whatever programming language you're comfortable
with -- around the `git show --num-status` or `git show --raw` commands:
these return a list of files "touched" by the most recent commit, so in
your script you could read the names of those files and then run any
archival tool to prepare an archive you need.
Note that if you want to include the files touched not only by the most
recent commit but by a range of commits, you'll need to use `git diff`
with the names of the first and last commits.

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.

Reply via email to