[gitg] Rename 'filepath' to 'file_path'



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

    Rename 'filepath' to 'file_path'
    
    https://bugzilla.gnome.org/show_bug.cgi?id=720886

 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 f4d15a9..debc974 100644
--- a/libgitg/resources/diff-view-html-builder.js
+++ b/libgitg/resources/diff-view-html-builder.js
@@ -113,15 +113,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;
@@ -150,7 +150,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,
        };
@@ -174,7 +174,7 @@ function diff_files(files, lines, maxlines, data)
        var f = '';
 
        var repl = [
-               'FILEPATH',
+               'FILE_PATH',
                'TABLE_BODY',
                'STATS'
        ];
diff --git a/libgitg/resources/diff-view.html b/libgitg/resources/diff-view.html
index 7eb2e30..cb784d0 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]