Skip to content
This repository
Browse code

Modify all requires to be relative rather than absolute

  • Loading branch information...
commit 3313dec3b590535641ecd880203e3fa431461f4e 1 parent a2637d8
Ciaran Jessup authored December 30, 2010
4  lib/diff/callbacks.js
... ...
@@ -1,5 +1,5 @@
1  
-var ContextChange = require('diff/change').ContextChange,
2  
-  Change = require('diff/change').Change;
  1
+var ContextChange = require('./change').ContextChange,
  2
+  Change = require('./change').Change;
3 3
 
4 4
 // This callback object implements the default set of callback events, which
5 5
 // only returns the event itself. Note that //finished_a and //finished_b are
16  lib/diff/diff.js
... ...
@@ -1,12 +1,12 @@
1 1
 var sys = require('sys'),
2  
-  SequenceCallbacks = require('diff/callbacks').SequenceCallbacks,
3  
-  ContextChange = require('diff/change').ContextChange,
4  
-  Change = require('diff/change').Change,
5  
-  DiffCallbacks = require('diff/callbacks').DiffCallbacks,
6  
-  SDiffCallbacks = require('diff/callbacks').SDiffCallbacks,
7  
-  BalancedCallbacks = require('diff/callbacks').BalancedCallbacks,
8  
-  ContextDiffCallbacks = require('diff/callbacks').ContextDiffCallbacks,
9  
-  Hunk = require('diff/hunk').Hunk;
  2
+  SequenceCallbacks = require('./callbacks').SequenceCallbacks,
  3
+  ContextChange = require('./change').ContextChange,
  4
+  Change = require('./change').Change,
  5
+  DiffCallbacks = require('./callbacks').DiffCallbacks,
  6
+  SDiffCallbacks = require('./callbacks').SDiffCallbacks,
  7
+  BalancedCallbacks = require('./callbacks').BalancedCallbacks,
  8
+  ContextDiffCallbacks = require('./callbacks').ContextDiffCallbacks,
  9
+  Hunk = require('./hunk').Hunk;
10 10
 
11 11
 var Difference = exports.Difference = function() {  
12 12
 }
2  lib/diff/hunk.js
... ...
@@ -1,4 +1,4 @@
1  
-var Block = require('diff/block').Block;
  1
+var Block = require('./block').Block;
2 2
 
3 3
 // A Hunk is a group of Blocks which overlap because of the context
4 4
 // surrounding each block. (So if we're not using context, every hunk will
2  lib/git/blame.js
... ...
@@ -1,4 +1,4 @@
1  
-var BlameLine = require('git/blame_line').BlameLine;
  1
+var BlameLine = require('./blame_line').BlameLine;
2 2
 
3 3
 var Blame = exports.Blame = function(repo, file, commit, callback) {  
4 4
   var _repo = repo, _file = file, _commit = commit, _lines = [];
4  lib/git/blob.js
... ...
@@ -1,5 +1,5 @@
1  
-var MimeTypes = require('git/mime/mime_types').MimeTypes,  
2  
-  Actor = require('git/actor').Actor;  
  1
+var MimeTypes = require('./mime/mime_types').MimeTypes,  
  2
+  Actor = require('./actor').Actor;  
3 3
 
4 4
 var Blob = exports.Blob = function(repo, id, mode, name) {
5 5
   var _repo = repo, _id = id, _mode = mode, _name = name, _content = null, _data = null, _size = 0;
6  lib/git/commit.js
... ...
@@ -1,7 +1,7 @@
1 1
 var sys = require('sys'),
2  
-  Actor = require('git/actor').Actor,
3  
-  Diff = require('git/diff').Diff;
4  
-  Tree = require('git/tree').Tree;
  2
+  Actor = require('./actor').Actor,
  3
+  Diff = require('./diff').Diff;
  4
+  Tree = require('./tree').Tree;
5 5
 
6 6
 // Create a commit object
7 7
 var Commit = exports.Commit = function(repo, id, parents, tree, author, authored_date, committer, committed_date, message) {
2  lib/git/diff.js
... ...
@@ -1,4 +1,4 @@
1  
-var Blob = require('git/blob').Blob;
  1
+var Blob = require('./blob').Blob;
2 2
 
3 3
 var Diff = exports.Diff = function(repo, a_path, b_path, a_blob, b_blob, a_mode, b_mode, new_file, deleted_file, diff) {  
4 4
   var _repo = repo, _a_path = a_path, _b_path = b_path
8  lib/git/git.js
... ...
@@ -1,10 +1,10 @@
1 1
 var sys = require('sys'),
2 2
     fs = require('fs'),
3  
-    GitFileOperations = require('git/git_file_operations').GitFileOperations,
  3
+    GitFileOperations = require('./git_file_operations').GitFileOperations,
4 4
     exec = require('child_process').exec,
5  
-    FileIndex = require('git/file_index').FileIndex,
6  
-    Repository = require('git/repository').Repository,
7  
-    Difference = require('diff/diff').Difference;
  5
+    FileIndex = require('./file_index').FileIndex,
  6
+    Repository = require('./repository').Repository,
  7
+    Difference = require('../diff/diff').Difference;
8 8
 
9 9
 var Git = exports.Git = function(git_directory) {
10 10
   var _git_diretory = git_directory, _git_file_index;
4  lib/git/git_index.js
... ...
@@ -1,6 +1,6 @@
1 1
 var sys = require('sys'),
2  
-  Tree = require('git/tree').Tree,
3  
-  Config = require('git/config').Config;
  2
+  Tree = require('./tree').Tree,
  3
+  Config = require('./config').Config;
4 4
 
5 5
 var GitIndex = exports.GitIndex = function(repo) {  
6 6
   var _repo = repo, _tree = {}, _current_tree = null;
8  lib/git/git_object.js
... ...
@@ -1,7 +1,7 @@
1  
-var GitCommit = require('git/internal/git_commit').GitCommit,
2  
-  GitTree = require('git/internal/git_tree').GitTree,
3  
-  GitTag = require('git/internal/git_tag').GitTag,
4  
-  GitBlob = require('git/internal/git_blob').GitBlob;
  1
+var GitCommit = require('./internal/git_commit').GitCommit,
  2
+  GitTree = require('./internal/git_tree').GitTree,
  3
+  GitTag = require('./internal/git_tag').GitTag,
  4
+  GitBlob = require('./internal/git_blob').GitBlob;
5 5
 
6 6
 var GitObject = exports.GitObject = function() {}
7 7
 
2  lib/git/head.js
... ...
@@ -1,5 +1,5 @@
1 1
 var sys = require('sys'),
2  
-  Commit = require('git/commit').Commit;
  2
+  Commit = require('./commit').Commit;
3 3
 
4 4
 var Head = exports.Head = function(name, commit) {
5 5
   var _name = name;
2  lib/git/internal/directory_entry.js
... ...
@@ -1,4 +1,4 @@
1  
-var StringUtil = require('sprintf/sprintf').StringUtil;
  1
+var StringUtil = require('../../sprintf/sprintf').StringUtil;
2 2
 
3 3
 var S_IFMT = parseInt('00170000', 8);
4 4
 var S_IFLNK = parseInt('0120000', 8);
2  lib/git/internal/git_commit.js
... ...
@@ -1,5 +1,5 @@
1 1
 var sys = require('sys'), 
2  
-  UserInfo = require('git/user_info').UserInfo;
  2
+  UserInfo = require('../user_info').UserInfo;
3 3
 
4 4
 var GitCommit = exports.GitCommit = function(tree, parent, author, committer, message, headers, repository) {
5 5
   var _tree = tree, _parent = parent, _author = author, _committer = committer, _message = message, _headers = headers, _repository = repository;
2  lib/git/internal/git_tag.js
... ...
@@ -1,5 +1,5 @@
1 1
 var sys = require('sys'),
2  
-  UserInfo = require('git/user_info').UserInfo;
  2
+  UserInfo = require('../user_info').UserInfo;
3 3
 
4 4
 var GitTag = exports.GitTag = function(object, type, tag, tagger, message, repository) {
5 5
   var _object = object, _type = type, _tag = tag, _tagger = tagger, _message = message, _repository = repository;
4  lib/git/internal/git_tree.js
... ...
@@ -1,6 +1,6 @@
1 1
 var sys = require('sys'),
2  
-  BinaryParser = require('git/binary_parser').BinaryParser,
3  
-  DirectoryEntry = require('git/internal/directory_entry').DirectoryEntry;
  2
+  BinaryParser = require('../binary_parser').BinaryParser,
  3
+  DirectoryEntry = require('../internal/directory_entry').DirectoryEntry;
4 4
 
5 5
 var GitTree = exports.GitTree = function(entries, repository) {  
6 6
   var _entries = entries ? entries : [], _repository = repository;
6  lib/git/loose_storage.js
... ...
@@ -1,8 +1,8 @@
1 1
 var sys = require('sys'),
2 2
   fs = require('fs'),
3  
-  BinaryParser = require('git/binary_parser').BinaryParser,
4  
-  Zlib = require('zlib/zlib').Zlib,
5  
-  RawObject = require('git/raw_object').RawObject,
  3
+  BinaryParser = require('./binary_parser').BinaryParser,
  4
+  Zlib = require('../zlib/zlib').Zlib,
  5
+  RawObject = require('./raw_object').RawObject,
6 6
   crypto = require('crypto');
7 7
   
8 8
 var compress = require('compress');
8  lib/git/pack_storage.js
... ...
@@ -1,10 +1,10 @@
1 1
 var sys = require('sys'),
2 2
   fs = require('fs'),
3 3
   Buffer = require('buffer').Buffer,
4  
-  BinaryParser = require('git/binary_parser').BinaryParser,
5  
-  FileWindow = require('git/file_window').FileWindow,
6  
-  RawObject = require('git/raw_object').RawObject;
7  
-  Zlib = require('zlib/zlib').Zlib;
  4
+  BinaryParser = require('./binary_parser').BinaryParser,
  5
+  FileWindow = require('./file_window').FileWindow,
  6
+  RawObject = require('./raw_object').RawObject;
  7
+  Zlib = require('../zlib/zlib').Zlib;
8 8
   
9 9
 var PACK_IDX_SIGNATURE = '\xfftOc';
10 10
 var FAN_OUT_COUNT = 256;
2  lib/git/raw_object.js
... ...
@@ -1,7 +1,7 @@
1 1
 var crypto = require('crypto'),
2 2
   sys = require('sys'),
3 3
   Buffer = require('buffer').Buffer,
4  
-  BinaryParser = require('git/binary_parser').BinaryParser;
  4
+  BinaryParser = require('./binary_parser').BinaryParser;
5 5
 
6 6
 var RawObject = exports.RawObject = function(type, content) {
7 7
   var _type = type, _content = content;
2  lib/git/remote.js
... ...
@@ -1,4 +1,4 @@
1  
-var Commit = require('git/commit').Commit;
  1
+var Commit = require('./commit').Commit;
2 2
 
3 3
 var Remote = exports.Remote = function(name, commit) {
4 4
   var _name = name;
26  lib/git/repo.js
... ...
@@ -1,18 +1,18 @@
1  
-var Head = require('git/head').Head,
2  
-  Git = require('git/git').Git,
3  
-  Commit = require('git/commit').Commit,
  1
+var Head = require('./head').Head,
  2
+  Git = require('./git').Git,
  3
+  Commit = require('./commit').Commit,
4 4
   fs = require('fs'),
5 5
   sys = require('sys'),
6  
-  Tree = require('git/tree').Tree,
7  
-  Blob = require('git/blob').Blob,
8  
-  Head = require('git/head').Head,
9  
-  Tag = require('git/tag').Tag,
10  
-  Remote = require('git/remote').Remote,
11  
-  Blame = require('git/blame').Blame,
12  
-  CommitStats = require('git/commit_stats').CommitStats,
13  
-  Config = require('git/config').Config,
14  
-  Status = require('git/status').Status,
15  
-  GitIndex = require('git/git_index').GitIndex;
  6
+  Tree = require('./tree').Tree,
  7
+  Blob = require('./blob').Blob,
  8
+  Head = require('./head').Head,
  9
+  Tag = require('./tag').Tag,
  10
+  Remote = require('./remote').Remote,
  11
+  Blame = require('./blame').Blame,
  12
+  CommitStats = require('./commit_stats').CommitStats,
  13
+  Config = require('./config').Config,
  14
+  Status = require('./status').Status,
  15
+  GitIndex = require('./git_index').GitIndex;
16 16
 
17 17
 var Repo = exports.Repo = function(path, options, callback) {
18 18
   var args = Array.prototype.slice.call(arguments, 1);
8  lib/git/repository.js
... ...
@@ -1,9 +1,9 @@
1 1
 var sys = require('sys'),
2  
-  GitObject = require('git/git_object').GitObject,
  2
+  GitObject = require('./git_object').GitObject,
3 3
   fs = require('fs'),
4  
-  LooseStorage = require('git/loose_storage').LooseStorage,
5  
-  PackStorage = require('git/pack_storage').PackStorage,
6  
-  BinaryParser = require('git/binary_parser').BinaryParser;
  4
+  LooseStorage = require('./loose_storage').LooseStorage,
  5
+  PackStorage = require('./pack_storage').PackStorage,
  6
+  BinaryParser = require('./binary_parser').BinaryParser;
7 7
 
8 8
 Repository = exports.Repository = function(git_directory, options) {  
9 9
   var _git_directory = git_directory;
4  lib/git/status.js
... ...
@@ -1,6 +1,6 @@
1 1
 var sys = require('sys'),
2  
-  GitFileOperations = require('git/git_file_operations').GitFileOperations,
3  
-  StatusFile = require('git/status_file').StatusFile;
  2
+  GitFileOperations = require('./git_file_operations').GitFileOperations,
  3
+  StatusFile = require('./status_file').StatusFile;
4 4
 
5 5
 var Status = exports.Status = function(repo, callback) {
6 6
   var _repo = repo, _files = [];
2  lib/git/tag.js
... ...
@@ -1,4 +1,4 @@
1  
-var Commit = require('git/commit').Commit;
  1
+var Commit = require('./commit').Commit;
2 2
 
3 3
 var Tag = exports.Tag = function(name, commit) {
4 4
   var _name = name;
4  lib/git/tree.js
... ...
@@ -1,6 +1,6 @@
1 1
 var sys = require('sys'),
2  
-  Submodule = require('git/sub_module').Submodule,
3  
-  Blob = require('git/blob').Blob;
  2
+  Submodule = require('./sub_module').Submodule,
  3
+  Blob = require('./blob').Blob;
4 4
 
5 5
 var Tree = exports.Tree = function(repo, id, mode, name, contents) {
6 6
   var _repo = repo, _id = id, _contents = contents, _mode = mode, _name = name;
2  lib/git/user_info.js
... ...
@@ -1,5 +1,5 @@
1 1
 var sys = require('sys'),
2  
-  StringUtil = require('sprintf/sprintf').StringUtil;
  2
+  StringUtil = require('../sprintf/sprintf').StringUtil;
3 3
 
4 4
 var UserInfo = exports.UserInfo = function(string) {
5 5
   var _email = '', _date = new Date(), _offset = 0, _name = '';

0 notes on commit 3313dec

Please sign in to comment.
Something went wrong with that request. Please try again.