One way of many...
This is one way which keeps the history looking like you'd expect.
Command is equivalent to git checkout MINE; git merge -s theirs HERS
.
#!/bin/bash | |
SVN="svn/trunk" | |
MASTER="master" | |
die() { echo "$@" >&2; exit 1; } | |
ensure_clean() | |
{ | |
if ! git diff --no-ext-diff --ignore-submodules --quiet --exit-code; then |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace TaskSchedulerTest | |
{ | |
/// <summary> |
using System; | |
using System.Windows.Data; | |
using System.Windows.Markup; | |
namespace LocalizationDemo.Localization | |
{ | |
public class LocExtension : MarkupExtension | |
{ | |
/// <summary> | |
/// Gets or sets the key to use to look up the appropriate value to display. |
namespace RestEaseSampleApplication | |
{ | |
// We receive a JSON response, so define a class to deserialize the json into | |
public class User | |
{ | |
public string Name { get; set; } | |
public string Blog { get; set; } | |
// This is deserialized using Json.NET, so use attributes as necessary | |
[JsonProperty("created_at")] |
/// <summary> | |
/// Extensions on TreeViews allowing users to bind to the SelectedItem property | |
/// </summary> | |
/// <remarks> | |
/// The trick used to detect when the binding has occurred means that there are some cases it doesn't handle - but I don't | |
/// recall what. | |
/// </remarks> | |
public static class TreeViewExtensions | |
{ | |
private static readonly object initialBindingTarget = new object(); |
using System; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
namespace FilesystemUtils | |
{ | |
public class AtomicFileStream : FileStream | |
{ | |
private const int DefaultBufferSize = 4096; | |
private const string DefaultTempFileSuffix = ".tmp"; |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Xml.Serialization; | |
namespace ConfigManager | |
{ | |
public class ConfigManager : IDisposable | |
{ |
public class Foo : IEquatable<Foo> | |
{ | |
public int Bar { get; set; } | |
public int Baz { get; set; } | |
public override bool Equals(object obj) | |
{ | |
return this.Equals(obj as Foo); | |
} | |