(c *C)
| 1259 | } |
| 1260 | |
| 1261 | func (s *WorktreeSuite) TestStatusAfterCheckout(c *C) { |
| 1262 | fs := memfs.New() |
| 1263 | w := &Worktree{ |
| 1264 | r: s.Repository, |
| 1265 | Filesystem: fs, |
| 1266 | } |
| 1267 | |
| 1268 | err := w.Checkout(&CheckoutOptions{Force: true}) |
| 1269 | c.Assert(err, IsNil) |
| 1270 | |
| 1271 | status, err := w.Status() |
| 1272 | c.Assert(err, IsNil) |
| 1273 | c.Assert(status.IsClean(), Equals, true) |
| 1274 | |
| 1275 | } |
| 1276 | |
| 1277 | func (s *WorktreeSuite) TestStatusModified(c *C) { |
| 1278 | fs, clean := s.TemporalFilesystem() |