~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/ngit/NGit/NGit.Storage.Pack/StoredObjectRepresentation.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
                }
87
87
 
88
88
                /// <returns>
89
 
                /// true if this is a delta against another object and this is stored
90
 
                /// in pack delta format.
 
89
                /// the storage format type, which must be one of
 
90
                /// <see cref="PACK_DELTA">PACK_DELTA</see>
 
91
                /// ,
 
92
                /// <see cref="PACK_WHOLE">PACK_WHOLE</see>
 
93
                /// , or
 
94
                /// <see cref="FORMAT_OTHER">FORMAT_OTHER</see>
 
95
                /// .
91
96
                /// </returns>
92
97
                public virtual int GetFormat()
93
98
                {
106
111
                {
107
112
                        return null;
108
113
                }
 
114
 
 
115
                /// <returns>
 
116
                /// whether the current representation of the object has had delta
 
117
                /// compression attempted on it.
 
118
                /// </returns>
 
119
                public virtual bool WasDeltaAttempted()
 
120
                {
 
121
                        int fmt = GetFormat();
 
122
                        return fmt == PACK_DELTA || fmt == PACK_WHOLE;
 
123
                }
109
124
        }
110
125
}