{"thread":{"id":"36000","subject":"git reset <path> returns unwanted failure status","startedAt":"2014-02-28T16:40:15Z","lastAt":"2014-02-28T16:40:15Z","messageCount":1,"participants":["Stephen Leake"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"235637","messageId":"85wqgfxkb4.fsf@stephe-leake.org","threadId":"36000","inReplyTo":null,"subject":"git reset <path> returns unwanted failure status","fromName":"Stephen Leake","fromEmail":"stephen_leake@stephe-leake.org","sentAt":"2014-02-28T16:40:15Z","receivedAt":"2014-02-28T16:40:15Z","isPatch":false,"sender":{"key":"stephen_leake@stephe-leake.org","avatar":null},"body":"The use case:\n\nI'm doing a 'git stash pop'; it had conflicts. At this point, 'git status' shows:\n\n# On branch master\n# Changes to be committed:\n#   (use \"git reset HEAD <file>...\" to unstage)\n#\n#\tmodified:   Target.java\n#\n# Unmerged paths:\n#   (use \"git reset HEAD <file>...\" to unstage)\n#   (use \"git add/rm <file>...\" as appropriate to mark resolution)\n#\n#\tboth modified:      DriveByInches.java\n#\n# Changes not staged for commit:\n#   (use \"git add <file>...\" to update what will be committed)\n#   (use \"git checkout -- <file>...\" to discard changes in working directory)\n#\n#\tmodified:   CommandBasedAutonomous.java\n#\n# Untracked files:\n#   (use \"git add <file>...\" to include in what will be committed)\n#\n#\tAerialAssist2014/src/org/usfirst/frc1939/AerialAssist2014/Autonomous/\n\nAs part of the conflict resolution, I decide to unstage Target.java:\n\nstephe@takver$ git reset Target.java\nUnstaged changes after reset:\nM\tCommandBasedAutonomous.java\nU\tDriveByInches.java\nM\tTarget.java\nstephe@takver$ echo $?\n1\n\n\nThe issue is the error status and the messages about other files.\n\nIf I had not specified a path to 'git reset', the error status would\nmake sense; those files were not reset. However, since the file I\nspecified was reset, there should be no error.\n\nSimilarly, if I specify no path to a git command, I expect warning\nmessages about files in the workspace that might need attention.\nHowever, if I do specify a path, I expect warning messages about files\nin that path only.\n\nThis can be stated more concisely if the default path is considered to be\n\"*\" (and recursive); don't error if the operation succeeded for all\nfiles in the path; don't warn about files not in the path.\n\n-- \n-- Stephe\n"}]}