Re: [git-users] Detect destructive changes betweeen two file versions

2015-10-30 Thread Konstantin Khomoutov
On Fri, 30 Oct 2015 10:59:49 -0700 (PDT) Ivan Švaljek wrote: > Yes I would like to get the diff state in a C# program of mine, Git > is one candidate if it's the easiest way to get such a state. > Git is also a candidate because it has some merge functionality if > I'm not wrong. Well, you can l

Re: [git-users] Detect destructive changes betweeen two file versions

2015-10-30 Thread Ivan Švaljek
Yes I would like to get the diff state in a C# program of mine, Git is one candidate if it's the easiest way to get such a state. Git is also a candidate because it has some merge functionality if I'm not wrong. Dana petak, 30. listopada 2015. u 14:44:49 UTC+1, korisnik Konstantin Khomoutov nap

Re: [git-users] Detect destructive changes betweeen two file versions

2015-10-30 Thread Konstantin Khomoutov
On Fri, 30 Oct 2015 05:06:00 -0700 (PDT) Ivan Švaljek wrote: > >> Is it possible to automate an C# app using git, so I get a flag > >> whether the changes in the new file version are destructive or > >> non-destructive? Bonus question: is there a functionality in git > >> to then merge those two

Re: [git-users] Detect destructive changes betweeen two file versions

2015-10-30 Thread Gergely Polonkai
>From Git’s perspective, both are “destructive”. You will see that the old line is deleted and a new one is added. Also, if you simply check if something was added to the code, your destructive example becomes non-destructive, as the new version only adds “inline-” in the middle of the line. What

Re: [git-users] Detect destructive changes betweeen two file versions

2015-10-30 Thread Ivan Švaljek
By destructive I mean any code overwrite or deletation, by non-destructive I mean anything added to the source file that doesn't overwrite or delete old version's content. Destructive .banner_wrap {display:block;} -> .banner_wrap {display:inline-block;} Non-destructive .banner_wrap {display:blo

Re: [git-users] Detect destructive changes betweeen two file versions

2015-10-30 Thread Gergely Polonkai
First things first: what do you think destrictive? Removing "rm -rf \*" from a shell script doesn’t seem destructive to me, for example… 2015-10-29 20:58 GMT+01:00 Ivan Švaljek : > Is it possible to automate an C# app using git, so I get a flag whether > the changes in the new file version are de

[git-users] Detect destructive changes betweeen two file versions

2015-10-29 Thread Ivan Švaljek
Is it possible to automate an C# app using git, so I get a flag whether the changes in the new file version are destructive or non-destructive? Bonus question: is there a functionality in git to then merge those two file versions if the changes were non destructive (line addition in css or a com