I’d bet there is none. It is hard to do it, especially if you have code
files with non-standard extensions, or templates that help in code
generations (I have such templates in some GLib based projects; most CI
systems don’t consider .template files as code).



Gergely Polonkai
[image: https://]about.me/gergely.polonkai
<https://about.me/gergely.polonkai?promo=email_sig&utm_source=email_sig&utm_medium=email_sig&utm_campaign=external_links>

2016-02-11 15:42 GMT+01:00 Suu Quan <suu.q...@oracle.com>:

> Thanks to Konstantin and Gergely for the insight.
>
> Ref: rebuild based on commit ID
> I think I'm going to accept the risk of building again in those situations
> in the first implementation phase, with a note on improving it -with git
> diff- in phase 2.
>
> I wonder if there is a Jenkins/Hudson plugin for git that took those
> situations into consideration.
>
> -----Original Message-----
> From: Konstantin Khomoutov [mailto:flatw...@users.sourceforge.net]
> Sent: Thursday, February 11, 2016 1:56 AM
> To: git-users@googlegroups.com
> Cc: Gergely Polonkai
> Subject: Re: [git-users] How do you find the latest "revision" of agit
> repo branch?
>
> On Thu, 11 Feb 2016 08:04:16 +0100
> Gergely Polonkai <gerg...@polonkai.eu> wrote:
>
> > even though the SHA1 commit ID can be looked at, a changing commit ID
> > doesn't mean changed code. What if you hat two commits since the last
> > build, one that adds a change and another that reverts it? You are
> > seeing the same code, yet you rebuild it.
> >
> > If you don't have a decent build system that can do incremental
> > builds, you may want to stick with git diff. You already have the
> > previous build's commit ID, so you can do git diff old-id HEAD. If
> > anything changed, do a build. If you pass --stat to git diff, you will
> > get the list of changed files, so you can make a decision if you
> > really need to build (e.g. no build if only the README file changed.).
> > This technique may be actually applied to other VCSes.
>
> I'd vote for this answer, too.
>
> To the OP: it worth keeping in mind that in Subversion, revision numbers
> are repository-wide, so to say that if a revision has changed, the content
> of a branch has changed, too, is not really correct.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/SZLgNLm_wrg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> 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.
>

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