diff

diff -bBurN R_uketuke.cgi-30b R_uketuke.cgi-30a > diff1.txt

使用例

      ロー カルソースツリーに対して行った変更 (新規ファイルを含み得る) をファ
      イルに保存し、(おそらく send-pr(1) プログラムを使用して) 他人に見せられ
      るようにするには、

      diff -crN foo.orig foo >foo.diff  
      -bBurN の方が一般的?

      と打ち込みます。ここで、 foo.orig と foo は、ディレクトリ階層であっても
      かまいませんし、単一ファイルであってもかまいません。
--- Cleanse.py_dist	2011-10-30 07:02:40.000000000 +0900
+++ Cleanse.py	2011-10-30 07:03:40.000000000 +0900
@@ -1,5 +1,5 @@
-# Copyright (C) 1998-2010 by the Free Software Foundation, Inc.
-#
+# Copyright (C) 1998-2006 by the Free Software Foundation, Inc.
+# NAGAE version
 # This program is free software; you can redistribute it and/or
 # modify it under the terms of the GNU General Public License
 # as published by the Free Software Foundation; either version 2
@@ -53,8 +53,17 @@
         # And so can the message-id so replace it.
         del msg['message-id']
         msg['Message-ID'] = unique_message_id(mlist)
+
+        for sender in msg.get_senders():
+            if mlist.isMember(sender):
+                break
+        else:
+            sender = msg.get_sender()
+        i18ndesc = str(uheader(mlist, mlist.getMemberName(sender), 'From'))
+        if i18ndesc == '':
         i18ndesc = str(uheader(mlist, mlist.description, 'From'))
         msg['From'] = formataddr((i18ndesc, mlist.GetListEmail()))
+
         msg['Reply-To'] = mlist.GetListEmail()
         uf = msg.get_unixfrom()
         if uf:

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2011-10-30 (日) 07:47:39