`eg status` does not show tracked files with unstaged modifications

Bug #1079628 reported by Chris Schoonbee
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
easygit (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Steps to recreate problem with eg (easygit) status command
-----------------------------------------------------------------------------------
1. Create a temporary testing directory e.g.
    $ mkdir -p ~/temp/eg_bug
    $ cd ~/temp/eg_bug
2. Create two text files in the directory. e.g.
   $ echo "this is the first file" > file1
   $ echo "this is the second file" > file2
3. Create a git repository in the directory
   $ eg init
4. Check status
   $ eg status
OUTPUT: Correctly shows two newly created unknown files (as does $ git status)
5. Get git to track the files
   $ eg stage .
6. Check status
   $ eg status
OUTPUT: Correctly shows the two files with changes ready to be committed ("staged") (as does `git status`)
5. Do first commit
   $ eg commit -m "Initial commit"
4. Check status
   $ eg status
OUTPUT: Correctly shows no modified files (as does `git status`)
6. Now modify the two existing files
   $ echo "Add second line" >> file1
   $ echo "Add second line" >> file2
7. Check status
   $ eg status
*UNEXPECTED OUTPUT*: (Pasted from terminal)
    (On branch master)
    (Changes not staged for commit:)
    ( (use "git add <file>..." to update what will be committed))
    ( (use "git checkout -- <file>..." to discard changes in working directory))

There is a hint that there are changes not staged for commit but it does not list any files!
Note that `git status` lists both modified files under "Changes not staged for commit:". This is EXPECTED BEHAVIOUR
8. Stage one of the modified files
   $ eg stage file1
9. Check status
   $ eg status
*UNEXPECTED OUTPUT*: (Pasted from terminal)
    (On branch master)
    Changes ready to be committed ("staged"):
         modified: file1

Now it shows the modified file (file1) that is staged but there is no longer even a hint that there is a file with changes that has not been staged (file2).
Note that `git status` shows both modfied files as expected:
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: file1
#
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: file2
#

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: easygit 0.99-1
ProcVersionSignature: Ubuntu 3.2.0-33.52-generic-pae 3.2.31
Uname: Linux 3.2.0-33-generic-pae i686
ApportVersion: 2.0.1-0ubuntu15
Architecture: i386
Date: Fri Nov 16 12:21:53 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120328)
MarkForUpload: True
PackageArchitecture: all
SourcePackage: easygit
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Chris Schoonbee (cmschoonbee) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in easygit (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.