[gitg/wip/techlivezh/diff-view-clean-up: 7/21] Rename 'filepath' to 'file_path'



commit 188f45796f713e1e3882c6330003dc270416823c
Author: Techlive Zheng <techlivezheng gmail com>
Date:   Tue Dec 17 19:11:15 2013 +0800

    Rename 'filepath' to 'file_path'

 libgitg/resources/diff-view-html-builder.js |   10 +++++-----
 libgitg/resources/diff-view.html            |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libgitg/resources/diff-view-html-builder.js b/libgitg/resources/diff-view-html-builder.js
index 1f10132..9f63e41 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -117,15 +117,15 @@ function diff_file(file, lnstate, data)
                }
        }
 
-       var filepath;
+       var file_path;
 
        if (file.file.new.path)
        {
-               filepath = file.file.new.path;
+               file_path = file.file.new.path;
        }
        else
        {
-               filepath = file.file.old.path;
+               file_path = file.file.old.path;
        }
 
        var total = added + removed;
@@ -154,7 +154,7 @@ function diff_file(file, lnstate, data)
 
        var template = data.file_template;
        var repls = {
-               'FILEPATH': filepath,
+               'FILE_PATH': file_path,
                'TABLE_BODY': table_body,
                'STATS': stats,
        };
@@ -176,7 +176,7 @@ function diff_file(file, lnstate, data)
 function diff_files(files, lines, maxlines, data)
 {
        var repl = [
-               'FILEPATH',
+               'FILE_PATH',
                'TABLE_BODY',
                'STATS'
        ];
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index 7c0725c..dae3845 100644
--- a/libgitg/resources/diff-view.html
+++ b/libgitg/resources/diff-view.html
@@ -29,7 +29,7 @@
           </colgroup>
           <tbody>
             <tr class="file_header">
-              <td colspan="3"><!-- ${STATS} --><span class="file_path"><!-- ${FILEPATH} --></span></td>
+              <td colspan="3"><!-- ${STATS} --><span class="file_path"><!-- ${FILE_PATH} --></span></td>
             </tr>
             <!-- ${TABLE_BODY} -->
           </tbody>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]