diff

Git file permissions on Windows

拈花ヽ惹草 提交于 2019-12-17 14:59:06
问题 I've read through a few questions regarding file permissions in Git and I'm still a bit confused. I've got a repo on GitHub forked from another. Post merge, they should be identical. However: $ git diff --summary origin/epsilon master/epsilon mode change 100644 => 100755 ants/dist/sample_bots/csharp/compile.sh mode change 100644 => 100755 ants/dist/starter_bots/coffeescript/MyBot.coffee mode change 100644 => 100755 ants/dist/starter_bots/coffeescript/ants.coffee mode change 100644 => 100755

How can I tell whether two .NET DLLs are the same?

扶醉桌前 提交于 2019-12-17 11:45:31
问题 I have the source for a DLL and I have a compiled version of it lying around somewhere. If I compile the source it will have a different date to the already-compiled version. How can I tell whether they are in fact the same and have merely been compiled at different times? 回答1: To compare two .dll files you can use ildasm or any other tool for geting IL code. I have created a sample with embedded ildasm in the dll file so that you can use it on every machine. When we disassemble an assembly

Viewing all `git diffs` with vimdiff

China☆狼群 提交于 2019-12-17 10:07:06
问题 I setup git diff to wrap into vimdiff, using "Git Diff with Vimdiff" as a guide, and it's working as expected unless there are many files with changes. When there are multiple files with changes and I run git diff , it opens the first file and, after quitting the first instance of vimdiff, I'm presented with the following message: external diff died, stopping at filename This is a completely different behavior than I am used to. I had a similar setup in the past with SVN and, when diffing

Using git to identify all modified functions in a revision

可紊 提交于 2019-12-17 09:55:51
问题 Is there a good way to use git to identify all the modified functions in each revision in the history? I've tried using the -p switch, but it doesn't seem to work in the same way that svn's show-c-function parameter works. My assumption is that I'll want to use "git diff HEAD~i HEAD~i-1 -p" for increasing values of i. Am I missing some parameters that will help identify diff's best guess on the functions that were modified? 回答1: Here's a quick and dirty attempt at what I think you're going

Semantic Diff Utilities [closed]

拈花ヽ惹草 提交于 2019-12-17 08:00:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I'm trying to find some good examples of semantic diff/merge utilities. The traditional paradigm of comparing source code files works by comparing lines and characters.. but are there any utilities out there (for any language) that actually consider the structure of code when comparing files? For example,

Compare XML snippets?

蹲街弑〆低调 提交于 2019-12-17 07:22:55
问题 Building on another SO question, how can one check whether two well-formed XML snippets are semantically equal. All I need is "equal" or not, since I'm using this for unit tests. In the system I want, these would be equal (note the order of 'start' and 'end'): <?xml version='1.0' encoding='utf-8' standalone='yes'?> <Stats start="1275955200" end="1276041599"> </Stats> # Reordered start and end <?xml version='1.0' encoding='utf-8' standalone='yes'?> <Stats end="1276041599" start="1275955200" >

How to see the changes between two commits without commits in-between?

大兔子大兔子 提交于 2019-12-17 06:19:28
问题 How do you make git diff only show the difference between two commits, excluding the other commits in-between? 回答1: you can simply pass the 2 commits to git diff like : -> git diff 0da94be 59ff30c > my.patch -> git apply my.patch 回答2: Asking for the difference /between/ two commits without including the commits in-between makes little sense. Commits are just snapshots of the contents of the repository; asking for the difference between two necessarily includes them. So the question then is,

Calculate difference from previous item with LINQ

痞子三分冷 提交于 2019-12-17 04:53:33
问题 I'm trying to prepare data for a graph using LINQ. The problem that i cant solve is how to calculate the "difference to previous. the result I expect is ID= 1, Date= Now, DiffToPrev= 0; ID= 1, Date= Now+1, DiffToPrev= 3; ID= 1, Date= Now+2, DiffToPrev= 7; ID= 1, Date= Now+3, DiffToPrev= -6; etc... Can You help me create such a query ? using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { public class MyObject { public int ID {

Are there any free Xml Diff/Merge tools available? [closed]

假装没事ソ 提交于 2019-12-17 04:47:34
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have several config files in my .net applications which I would like to merge application settings elements etc. I was about to

Are there any free Xml Diff/Merge tools available? [closed]

别来无恙 提交于 2019-12-17 04:47:25
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have several config files in my .net applications which I would like to merge application settings elements etc. I was about to