conflict

Have git rerere automatically mark files as resolved?

淺唱寂寞╮ 提交于 2019-11-28 23:17:09
I'm using git rerere, and it is useful, but there is one problem: When it automatically resolves a file, it does not mark it as resolved (eg with git add). So if I run 'git mergetool', it opens up the file as if it still has all the conflicts in it. So far, I've made a small shell script which I can call, which scans all files marked as conflicted for conflict markers (eg >>>>>>> ), and calls git-add on them if they have none. Is there a better way of doing this? Some flag to git rerere I missed? Maybe a git config setting can help: rerere.autoupdate When set to true, git-rerere updates the

Different versions of the same dependency in Maven

╄→尐↘猪︶ㄣ 提交于 2019-11-28 21:28:12
I have a maven project that depends on both Woodstox and XStream. Unfortunately XStream also depends on Woodstox, but a version slightly older than what I need. In the meantime though, the artifact names of the Woodstox libs changed, so maven won't consider them multiple versions of the same artifact. But the package and class names are the same, which means there is a conflict at runtime. Now, I could obviously hack the old woodstox jar out of the build (a war file in our case) somehow but what is the proper way of solving this type of problem? Raghuram You could try excluding woodstox

How to solve two packages requirements conflicts when running composer install?

限于喜欢 提交于 2019-11-28 17:50:11
I want to install these two packages: "anahkiasen/former": "dev-master" "vespakoen/menu": "dev-master" But composer says that each of them depends on diferent versions of this package: "anahkiasen/html-object": "dev-master" "anahkiasen/html-object": "1.1.2" Problem 1 - Installation request for anahkiasen/former dev-master -> satisfiable by anahkiasen/former[dev-master]. - Can only install one of: anahkiasen/html-object[dev-master, 1.1.2]. - vespakoen/menu dev-master requires anahkiasen/html-object 1.1.2 -> satisfiable by anahkiasen/html-object[1.1.2]. - anahkiasen/former dev-master requires

Why after merge does GIT say “Already up-to-date”, but differences between branches still exist?

允我心安 提交于 2019-11-28 16:52:23
I was originally working in 'newfeature' branch and I was called to fix a bug on the live branch urgently. I created a branch for that called 'generalmaintenance', did the job and then switched to develop and merged it in. I now want to return to 'newfeature' branch and to merge in the changes that I merged into it earlier. When I switched to 'newfeature' and merged in 'develop', there were conflicts in 3 files. I got in a tangle resolving the conflicts and eventually decided to use the "Revert" command in the 'Team' menu of Aptana Studio 3 (which is my IDE). I expected this to roll me back to

Git resolve conflict using --ours/--theirs for all files

China☆狼群 提交于 2019-11-28 13:52:37
问题 Is there a way to resolve conflict for all files using checkout --ours and --theirs ? I know that you can do it for individual files but couldn't find a way to do it for all. 回答1: Just grep through the working directory and send the output through the xargs command: grep -lr '<<<<<<<' . | xargs git checkout --ours or grep -lr '<<<<<<<' . | xargs git checkout --theirs How this works: grep will search through every file in the current directory (the . ) and subdirectories recursively (the -r

Jquery tabs conflicting with revolution slider

对着背影说爱祢 提交于 2019-11-28 12:48:47
问题 I am trying to create a page containing revolution slider and a tabs script. You can find the page here: http://lovebomb.nl/dating But somehow the scripts are conflicting with one another. This part of the revolution slider: var tpj=jQuery; tpj.noConflict(); tpj(document).ready(function() { if (tpj.fn.cssOriginal!=undefined) tpj.fn.css = tpj.fn.cssOriginal; tpj('.fullwidthbanner').revolution( { delay:9000, startwidth:1024, startheight:616, onHoverStop:"on", // Stop Banner Timet at Hover on

How to resolve a library conflict (apache commons-codec)

若如初见. 提交于 2019-11-28 12:15:33
I have a problem with Android libraries. I would like use the method Hex.encodeHexString(Byte Array) from the library org.apache.commons.codec.binary.Hex (version 1.6) On my Android platform (SDK 2.3.1), the commons-codec library version 1.3 already exist but the method doesn't exist yet in this version (only encodeHex() ). I added the jar library of version 1.6 into my Eclipse project (into /libs directory) but when I run the project on Emulator, I get this : E/AndroidRuntime(1632): FATAL EXCEPTION: main E/AndroidRuntime(1632): java.lang.NoSuchMethodError: org.apache.commons.codec.binary.Hex

How to fix Prototype conflict with Highchart?

烂漫一生 提交于 2019-11-28 10:26:16
问题 I have an AJAX action and trying to use Highchart at the same time that's why I need Prototype to be included. Here is my code but is not showing the Highchart graph: <script src="https://ajax.googleapis.com/ajax/libs/prototype/1.7/prototype.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script src="http://code.highcharts.com/highcharts.js"></script> <div id="contain" style="min-width: 310px; height: 400px; margin: 0 auto"></div> Here

How do you stop UITapGestureRecognizer from catching EVERY tap?

与世无争的帅哥 提交于 2019-11-28 06:18:07
Hello I have an opengl view and on that I have a tab bar. I'm using a tap recognizer to tap different 3d objects on screen. In the tab bar I have a button but it doesn't work because the tap recognizer catches these taps too. How do I stop this? I've already tried this: - (BOOL) gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch { if ([touch.view isKindOfClass:[UIBarButtonItem class]]) return FALSE; return TRUE; } I think I am somehow comparing wrong classess because when I debug it returns TRUE always. Or you can just do [singleTap

Extension methods conflict

谁说胖子不能爱 提交于 2019-11-28 00:37:58
Lets say I have 2 extension methods to string, in 2 different namespaces: namespace test1 { public static class MyExtensions { public static int TestMethod(this String str) { return 1; } } } namespace test2 { public static class MyExtensions2 { public static int TestMethod(this String str) { return 2; } } } These methods are just for example, they don't really do anything. Now lets consider this piece of code: using System; using test1; using test2; namespace blah { public static class Blah { public Blah() { string a = "test"; int i = a.TestMethod(); //Which one is chosen ? } } } The Question