Skip to content

Instantly share code, notes, and snippets.

@ken39arg
Last active January 2, 2016 13:29
Show Gist options
  • Select an option

  • Save ken39arg/8310167 to your computer and use it in GitHub Desktop.

Select an option

Save ken39arg/8310167 to your computer and use it in GitHub Desktop.

=とか => とか : とかを揃えるとコードが見やすいけど みんなが意識高く揃えるとmergeする時に激しくコンフリクトして辛い問題

スーパーなプログラマ集団はどうしているんだろうなあ

foo : {
    bar  : 123,
    buzz : 234,
    boo  : 123,
}

これを

1 こうする

foo : {
    bar   : 123,
    buzz  : 234,
    boo   : 123,
    piyop : 456,
}

2 こうする

foo : {
    bar  : 123,
    buzz : 234,
    boo  : 123,
    piyop : 456,
}

Diff

1

 foo : {
-    bar  : 123,
-    buzz : 234,
-    boo  : 123,
+    bar   : 123,
+    buzz  : 234,
+    boo   : 123,
+    piyop : 456,
 }

2

 foo : {
     bar  : 123,
     buzz : 234,
     boo  : 123,
+    piyop : 456,
 }
$ git diff -b abranch bbranch path/to/file

で修正箇所は見つけられるけどconflictしたboth modifiedなファイルを修正するのはやっぱり辛い

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment