{"thread":{"id":"33022","subject":"Ignore version update changes on git show report?","startedAt":"2013-02-26T19:53:34Z","lastAt":"2013-03-01T15:12:16Z","messageCount":3,"participants":["Preben Liland Madsen","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"210356","messageId":"DEC76CB0-9E35-40A8-9D73-77617CC605A3@gmail.com","threadId":"33022","inReplyTo":null,"subject":"Ignore version update changes on git show report?","fromName":"Preben Liland Madsen","fromEmail":"prebenliland@gmail.com","sentAt":"2013-02-26T19:53:34Z","receivedAt":"2013-02-26T19:53:34Z","isPatch":false,"sender":{"key":"prebenliland@gmail.com","avatar":null},"body":"Hello, \n\nI'm trying to investigate some what changes have been done between two versions of a software with the name IP.Board. \n\nThis proves more troublesome than I thought, since their release builder appearantly updates the version number automatically in all files. \n\nThis causes a lot of files to have this as the only change: \n\n- * IP.Board v3.4.2\n+ * IP.Board v3.4.3\n\nWhich is quite annoying to have to go through and therefor is responsible for more than 800 files being changed. \n\nIs there some sort of git command or command I can combine together with git show that will ignore files with only these changes? Something along the lines of ignoring files where the only change matches this change or ignore files that've only gotten 1 line removed and 1 line added? \n\nBest regards, Preben"},{"id":"210460","messageId":"5130AE23.4040303@drmicha.warpmail.net","threadId":"33022","inReplyTo":"DEC76CB0-9E35-40A8-9D73-77617CC605A3@gmail.com","subject":"Re: Ignore version update changes on git show report?","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2013-03-01T13:33:23Z","receivedAt":"2013-03-01T13:33:23Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Preben Liland Madsen venit, vidit, dixit 26.02.2013 20:53:\n> Hello, \n> \n> I'm trying to investigate some what changes have been done between two versions of a software with the name IP.Board. \n> \n> This proves more troublesome than I thought, since their release builder appearantly updates the version number automatically in all files. \n> \n> This causes a lot of files to have this as the only change: \n> \n> - * IP.Board v3.4.2\n> + * IP.Board v3.4.3\n> \n> Which is quite annoying to have to go through and therefor is responsible for more than 800 files being changed. \n> \n> Is there some sort of git command or command I can combine together with git show that will ignore files with only these changes? Something along the lines of ignoring files where the only change matches this change or ignore files that've only gotten 1 line removed and 1 line added? \n> \n> Best regards, Preben--\n> To unsubscribe from this list: send the line \"unsubscribe git\" in\n> the body of a message to majordomo@vger.kernel.org\n> More majordomo info at  http://vger.kernel.org/majordomo-info.html\n> \n\nFirst of all, there is\n\ngit beat-with-stick\n\nthat you should apply to those responsible for that mess ;)\n\nIf you have to deal with that sort of situation then a textconv filter\nmight get you as close as possible. Use \"grep -v '^\\* IP.Board v*'\" as a\ntextconv filter for those files, and those changes will disappear from\nthe diff. (I do something like that for tracking my gitk config, which\nstores last window sizes.)\n\nMichael\n"},{"id":"210462","messageId":"BB9809E3-7698-48D6-A051-D1052506507A@gmail.com","threadId":"33022","inReplyTo":"5130AE23.4040303@drmicha.warpmail.net","subject":"Re: Ignore version update changes on git show report?","fromName":"Preben Liland Madsen","fromEmail":"prebenliland@gmail.com","sentAt":"2013-03-01T15:12:16Z","receivedAt":"2013-03-01T15:12:16Z","isPatch":false,"sender":{"key":"prebenliland@gmail.com","avatar":null},"body":"Den 1. mars 2013 kl. 14.33 skrev Michael J Gruber:\n\n> First of all, there is\n> \n> git beat-with-stick\n> \n> that you should apply to those responsible for that mess ;)\n\nHaha, yeah I should try that one ;-)\n\nI wish they weren't included in their release, but what can you do... I'm sure they have their reason for including the updated version number. Maybe to ensure files have been updated or similar when doing support for their clients, I guess... Although for us it really is more a pain than gain that they update the version number in all their php files when we wish to review changes done in files we may have modified earlier or possibly investigate bugs that may suddenly crop up in newer versions.\n\n\n> If you have to deal with that sort of situation then a textconv filter\n> might get you as close as possible. Use \"grep -v '^\\* IP.Board v*'\" as a\n> textconv filter for those files, and those changes will disappear from\n> the diff. (I do something like that for tracking my gitk config, which\n> stores last window sizes.)\n\nThanks! I got a similar tips on stackoverflow: http://stackoverflow.com/questions/15097401/git-any-way-to-ignore-files-that-have-gotten-version-number-changed-only/\n\nBut unfortunately that doesn't work for --stat it seems, but I've written a small \"sketchy\" shell-script to just ignore all lines with 2+- in them...\n\n\nBest regards, Preben"}]}